Skip to content

Commit

Permalink
Make RoutedMessage a pure inline helper class
Browse files Browse the repository at this point in the history
Pure inline classes doesn't have to be exported
  • Loading branch information
KonstantinRitt committed Aug 17, 2017
1 parent 2e5c64e commit 2f0909c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 60 deletions.
1 change: 0 additions & 1 deletion src/mqtt/mqtt.pri
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ SOURCES += \
$$PWD/qmqtt_message.cpp \
$$PWD/qmqtt_network.cpp \
$$PWD/qmqtt_routesubscription.cpp \
$$PWD/qmqtt_routedmessage.cpp \
$$PWD/qmqtt_router.cpp \
$$PWD/qmqtt_message_p.cpp \
$$PWD/qmqtt_socket.cpp \
Expand Down
52 changes: 0 additions & 52 deletions src/mqtt/qmqtt_routedmessage.cpp

This file was deleted.

16 changes: 9 additions & 7 deletions src/mqtt/qmqtt_routedmessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,17 @@

namespace QMQTT {

class Message;

class Q_MQTT_EXPORT RoutedMessage
class RoutedMessage
{
public:
explicit RoutedMessage(const Message &message);

const Message &message() const;
QHash<QString, QString> parameters() const;
inline RoutedMessage(const Message &message)
: _message(message)
{}

inline const Message &message() const
{ return _message; }
inline QHash<QString, QString> parameters() const
{ return _parameters; }

private:
friend class RouteSubscription;
Expand Down

0 comments on commit 2f0909c

Please sign in to comment.