Declare StdBuf::operator< as const so that it is used in map lookups

stable-5.2
Armin Burgmeier 2009-07-11 00:31:47 +02:00
parent 8c15d08a18
commit 3d359840a1
1 changed files with 1 additions and 1 deletions

View File

@ -539,7 +539,7 @@ public:
operator const void *() const { return getData(); }
// less-than operation for map
inline bool operator <(const StdStrBuf &v2)
inline bool operator <(const StdStrBuf &v2) const
{
int iLen = getLength(), iLen2 = v2.getLength();
if (iLen == iLen2)