Skip to content

Commit

Permalink
Merge pull request #237 from emqx/revert-231-master
Browse files Browse the repository at this point in the history
Revert "Changes to be able to compile the library with Qt 6.2.0."
  • Loading branch information
mwallnoefer authored Feb 15, 2022
2 parents 34e660c + 32a7e25 commit 6abd396
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 33 deletions.
5 changes: 0 additions & 5 deletions qmqtt.pri
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ INCLUDEPATH += $$PWD/src/mqtt
#
DEFINES += MQTT_PROJECT_INCLUDE_SRC

#
# Optimize compilation times by including MOC C++ code
#
DEFINES += MQTT_INCLUDE_MOC=1

#
# Add header files
#
Expand Down
4 changes: 0 additions & 4 deletions src/mqtt/qmqtt_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,3 @@ void QMQTT::Client::ignoreSslErrors(const QList<QSslError>& errors)
d->ignoreSslErrors(errors);
}
#endif // QT_NO_SSL

#if MQTT_INCLUDE_MOC
#include "moc_qmqtt_client.cpp"
#endif
5 changes: 0 additions & 5 deletions src/mqtt/qmqtt_network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,3 @@ void QMQTT::Network::setSslConfiguration(const QSslConfiguration& config)
_socket->setSslConfiguration(config);
}
#endif // QT_NO_SSL

#if MQTT_INCLUDE_MOC
#include "moc_qmqtt_network_p.cpp"
#endif

3 changes: 0 additions & 3 deletions src/mqtt/qmqtt_router.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,3 @@ Client *Router::client() const

} // namespace QMQTT

#if MQTT_INCLUDE_MOC
#include "moc_qmqtt_router.cpp"
#endif
5 changes: 1 addition & 4 deletions src/mqtt/qmqtt_routesubscription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,5 @@ void RouteSubscription::routeMessage(const Message &message)

emit received(routedMessage);
}
} // namespace QMQTT

#if MQTT_INCLUDE_MOC
#include "moc_qmqtt_routesubscription.cpp"
#endif
} // namespace QMQTT
4 changes: 0 additions & 4 deletions src/mqtt/qmqtt_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,3 @@ QAbstractSocket::SocketError QMQTT::Socket::error() const
{
return _socket->error();
}

#if MQTT_INCLUDE_MOC
#include "moc_qmqtt_socket_p.cpp"
#endif
4 changes: 0 additions & 4 deletions src/mqtt/qmqtt_ssl_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,4 @@ void QMQTT::SslSocket::setSslConfiguration(const QSslConfiguration& config)
_socket->setSslConfiguration(config);
}

#if MQTT_INCLUDE_MOC
#include "moc_qmqtt_ssl_socket_p.cpp"
#endif

#endif // QT_NO_SSL
4 changes: 0 additions & 4 deletions src/mqtt/qmqtt_timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,3 @@ void QMQTT::Timer::stop()
{
_timer.stop();
}

#if MQTT_INCLUDE_MOC
#include "moc_qmqtt_timer_p.cpp"
#endif

0 comments on commit 6abd396

Please sign in to comment.