summaryrefslogtreecommitdiff
path: root/svl/source/misc/sharedstring.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-10-11 11:33:05 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-10-11 12:14:28 -0400
commit19ea624c6dc779333e84ca937e2f90a3f39871b1 (patch)
tree37fee97b24e52429683f7866bfdaaf9d49c29038 /svl/source/misc/sharedstring.cxx
parent78cf106733680d2aedf85441cd359669f560b93a (diff)
Fix equality operator for SharedString & write test for it.
Change-Id: Ib592ca2fe359293da6c10aa9e1535a91627cfc43
Diffstat (limited to 'svl/source/misc/sharedstring.cxx')
-rw-r--r--svl/source/misc/sharedstring.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/misc/sharedstring.cxx b/svl/source/misc/sharedstring.cxx
index 8389ff836c8f..6a5d3959ba8e 100644
--- a/svl/source/misc/sharedstring.cxx
+++ b/svl/source/misc/sharedstring.cxx
@@ -81,7 +81,7 @@ bool SharedString::operator== ( const SharedString& r ) const
if (mpData->length != r.mpData->length)
return false;
- return rtl_ustr_compare_WithLength(mpData->buffer, mpData->length, r.mpData->buffer, r.mpData->length);
+ return rtl_ustr_reverseCompare_WithLength(mpData->buffer, mpData->length, r.mpData->buffer, r.mpData->length) == 0;
}
return !r.mpData;