diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-08 15:18:16 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-08 15:48:12 -0400 |
commit | 3786609a153b7fa38393eb646557d241af2d3060 (patch) | |
tree | d2d33086cf318229a7893dc0958630834fc1ec16 /svl/source/misc/sharedstring.cxx | |
parent | a7ff6e0a3fc5fccad33f06ae9d4ec7019f9ae156 (diff) |
No more getIdentifier*() calls because they are not efficient.
They shall never be used.
Change-Id: I019c88b1511a67175d782777cd41e0ec0434f497
Diffstat (limited to 'svl/source/misc/sharedstring.cxx')
-rw-r--r-- | svl/source/misc/sharedstring.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/svl/source/misc/sharedstring.cxx b/svl/source/misc/sharedstring.cxx index e8ad0b7d4fd4..5eb3af5cbbf4 100644 --- a/svl/source/misc/sharedstring.cxx +++ b/svl/source/misc/sharedstring.cxx @@ -78,6 +78,11 @@ bool SharedString::operator== ( const SharedString& r ) const return !r.mpData; } +bool SharedString::operator!= ( const SharedString& r ) const +{ + return !operator== (r); +} + OUString SharedString::getString() const { return mpData ? OUString(mpData) : OUString(); @@ -103,6 +108,11 @@ const rtl_uString* SharedString::getDataIgnoreCase() const return mpDataIgnoreCase; } +bool SharedString::isValid() const +{ + return mpData != NULL; +} + } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |