Skip to content

Commit

Permalink
Fix -Wmismatched-tags warnings
Browse files Browse the repository at this point in the history
The forward declaration and the definition was not matching. Some
were forward declared as class and defined as struct.

Change-Id: I8912e6373e24126befba52df0bef8795299e50f7
Reviewed-by: Mikhail Svetkin <[email protected]>
Reviewed-by: Mårten Nordheim <[email protected]>
  • Loading branch information
jsfdez committed Jan 30, 2019
1 parent e5e1edc commit b317105
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/httpserver/qhttpserverresponse_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@

#include <QtHttpServer/qhttpserverresponse.h>

struct QHttpServerResponsePrivate
class QHttpServerResponsePrivate
{
public:
QByteArray mimeType;
QByteArray data;
QHttpServerResponse::StatusCode statusCode;
Expand Down
3 changes: 2 additions & 1 deletion src/httpserver/qhttpserverrouter_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@

QT_BEGIN_NAMESPACE

struct QHttpServerRouterPrivate
class QHttpServerRouterPrivate
{
public:
QHttpServerRouterPrivate();

QMap<int, QLatin1String> converters;
Expand Down
3 changes: 2 additions & 1 deletion src/httpserver/qhttpserverrouterrule_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@

QT_BEGIN_NAMESPACE

struct Q_HTTPSERVER_EXPORT QHttpServerRouterRulePrivate
class Q_HTTPSERVER_EXPORT QHttpServerRouterRulePrivate
{
public:
QString pathPattern;
QHttpServerRequest::Methods methods;
QHttpServerRouterRule::RouterHandler routerHandler;
Expand Down

0 comments on commit b317105

Please sign in to comment.