summaryrefslogtreecommitdiff
path: root/cpp/broker/inc/TopicExchange.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/broker/inc/TopicExchange.h')
-rw-r--r--cpp/broker/inc/TopicExchange.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/broker/inc/TopicExchange.h b/cpp/broker/inc/TopicExchange.h
index 68a4026ee7..227280103f 100644
--- a/cpp/broker/inc/TopicExchange.h
+++ b/cpp/broker/inc/TopicExchange.h
@@ -57,7 +57,7 @@ class TopicPattern : public Tokens
TopicPattern(const Tokens& tokens) { operator=(tokens); }
TopicPattern(const std::string& str) { operator=(str); }
TopicPattern& operator=(const Tokens&);
- TopicPattern& operator=(const std::string& str) { operator=(Tokens(str)); }
+ TopicPattern& operator=(const std::string& str) { return operator=(Tokens(str)); }
/** Match a topic */
bool match(const std::string& topic) { return match(Tokens(topic)); }