diff --git a/libs/yasn/yateasn.h b/libs/yasn/yateasn.h index 08b32d50..f4648c23 100644 --- a/libs/yasn/yateasn.h +++ b/libs/yasn/yateasn.h @@ -201,8 +201,8 @@ public: * Get the value in the form of a string * @return String containing the internal data */ - inline String getValue() - { return m_data;} + inline const String& getValue() + { return m_data; } /** * Get the type of the data so that we know how to interpret it @@ -227,7 +227,7 @@ public: * Assign operator */ inline AsnValue& operator=( AsnValue val) - { + { m_data = val.getValue(); m_type = val.type(); return *this;