diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-11 15:47:49 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-11 15:48:52 -0400 |
commit | 78e0d07b6250ba441bae2c7517ed973d99bbd0b3 (patch) | |
tree | 2ab63f4cc219980ec2e184779507071f13c0b554 /svl/source/misc/sharedstring.cxx | |
parent | 66c803ebcb4bc164ca5af1cf752aeb645735f186 (diff) |
Compare by pointers first.
Change-Id: Iec697f7100c06da37158e564ac64f0248f923638
Diffstat (limited to 'svl/source/misc/sharedstring.cxx')
-rw-r--r-- | svl/source/misc/sharedstring.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/svl/source/misc/sharedstring.cxx b/svl/source/misc/sharedstring.cxx index 6a5d3959ba8e..ed4257d96a56 100644 --- a/svl/source/misc/sharedstring.cxx +++ b/svl/source/misc/sharedstring.cxx @@ -73,6 +73,9 @@ SharedString& SharedString::operator= ( const SharedString& r ) bool SharedString::operator== ( const SharedString& r ) const { // Only compare case sensitive strings. + if (mpData == r.mpData) + return true; + if (mpData) { if (!r.mpData) |