summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Svetkin <mikhail.svetkin@qt.io>2018-07-16 21:42:33 +0200
committerMikhail Svetkin <mikhail.svetkin@qt.io>2018-07-17 09:25:04 +0000
commit8eb367861602bd0106b05550baf0decccd989fb6 (patch)
tree86dee0008378bc70c03765cf77af50110886ef0d
parent1ba50028d248a43d62bb17c86aaf85973c0116fa (diff)
Fix compilation warning
qhttpserverrequest.cpp: In function ‘QDebug operator<<(QDebug, const http_parser*)’: qhttpserverrequest.cpp:70:89: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] debug.nospace() << "http_parser(" << reinterpret_cast<const void * const>(httpParser) << ": "; Change-Id: Idf1e92d19033e58634638f3c1a1ccf3a9c3b81d8 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rw-r--r--src/httpserver/qhttpserverrequest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/httpserver/qhttpserverrequest.cpp b/src/httpserver/qhttpserverrequest.cpp
index 9e2483d..ce9cb80 100644
--- a/src/httpserver/qhttpserverrequest.cpp
+++ b/src/httpserver/qhttpserverrequest.cpp
@@ -67,7 +67,7 @@ Q_HTTPSERVER_EXPORT QDebug operator<<(QDebug debug, const QHttpServerRequest &re
QDebug operator<<(QDebug debug, const http_parser *const httpParser)
{
const auto oldSetting = debug.autoInsertSpaces();
- debug.nospace() << "http_parser(" << static_cast<const void * const>(httpParser) << ": ";
+ debug.nospace() << "http_parser(" << static_cast<const void *>(httpParser) << ": ";
debug << "HTTP " << httpParser->http_major << "." << httpParser->http_minor << " "
<< http_method_str(http_method(httpParser->method)) << ')';
debug.setAutoInsertSpaces(oldSetting);