Return string by reference instead of value from ASN.1 library.

Improves performance of SNMP queries.


git-svn-id: http://voip.null.ro/svn/yate@5623 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2013-08-14 08:38:40 +00:00
parent 868f2c5cf3
commit 153be3b967
1 changed files with 3 additions and 3 deletions

View File

@ -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;