diff --git a/daemon/src/sip/pattern.h b/daemon/src/sip/pattern.h index afc7aba9015b24d81489561a9ce113d15cc896ef..1883a23388c0c8c2f2d0236f21d89f55e74c1691 100644 --- a/daemon/src/sip/pattern.h +++ b/daemon/src/sip/pattern.h @@ -94,14 +94,16 @@ class Pattern { * * @param pattern The new pattern */ - void operator= (const std::string& pattern) { + Pattern& operator=(const std::string& pattern) { pattern_ = pattern; compile(); + return *this; } - void operator= (const char * pattern) { + Pattern& operator=(const char * pattern) { pattern_ = pattern; compile(); + return *this; } /**