diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-12 14:06:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-06-17 10:55:17 +0200 |
commit | 3e82897353e576dc6e3fbf55371fda5a0c3415df (patch) | |
tree | 71c2f03128885000efae1852dccb504f8355c79e /include/svl/sharedstring.hxx | |
parent | ec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff) |
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'include/svl/sharedstring.hxx')
-rw-r--r-- | include/svl/sharedstring.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/svl/sharedstring.hxx b/include/svl/sharedstring.hxx index ddb63f14e8d8..aac16df2e006 100644 --- a/include/svl/sharedstring.hxx +++ b/include/svl/sharedstring.hxx @@ -34,18 +34,18 @@ public: bool operator== ( const SharedString& r ) const; bool operator!= ( const SharedString& r ) const; - OUString getString() const; + OUString getString() const { return mpData ? OUString(mpData) : OUString();} rtl_uString* getData() { return mpData;} - const rtl_uString* getData() const; + const rtl_uString* getData() const { return mpData;} rtl_uString* getDataIgnoreCase() { return mpDataIgnoreCase;} - const rtl_uString* getDataIgnoreCase() const; + const rtl_uString* getDataIgnoreCase() const { return mpDataIgnoreCase;} - bool isValid() const; - bool isEmpty() const; + bool isValid() const { return mpData != NULL;} + bool isEmpty() const { return mpData == NULL || mpData->length == 0;} - sal_Int32 getLength() const; + sal_Int32 getLength() const { return mpData ? mpData->length : 0;} }; } |