Browse Source

[2726] Proper return from assignment

Michal 'vorner' Vaner 12 years ago
parent
commit
e05af734b0
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/lib/dns/serial.h

+ 4 - 1
src/lib/dns/serial.h

@@ -59,7 +59,10 @@ public:
     /// \brief Direct assignment from other Serial
     ///
     /// \param other The Serial to assign the value from
-    void operator=(const Serial& other) { value_ = other.getValue(); }
+    Serial &operator=(const Serial& other) {
+        value_ = other.getValue();
+        return (*this);
+    }
 
     /// \brief Direct assignment from value
     ///