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 | |
parent | ec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff) |
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/broadcast.hxx | 2 | ||||
-rw-r--r-- | include/svl/grabbagitem.hxx | 2 | ||||
-rw-r--r-- | include/svl/sharedstring.hxx | 12 | ||||
-rw-r--r-- | include/svl/style.hxx | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/include/svl/broadcast.hxx b/include/svl/broadcast.hxx index a77ebdbc2819..62e343fe9e99 100644 --- a/include/svl/broadcast.hxx +++ b/include/svl/broadcast.hxx @@ -56,7 +56,7 @@ public: void Broadcast( const SfxHint &rHint ); - ListenersType& GetAllListeners(); + ListenersType& GetAllListeners() { return maListeners;} bool HasListeners() const; diff --git a/include/svl/grabbagitem.hxx b/include/svl/grabbagitem.hxx index d7606199fc4f..9ba6868de599 100644 --- a/include/svl/grabbagitem.hxx +++ b/include/svl/grabbagitem.hxx @@ -30,7 +30,7 @@ public: SfxGrabBagItem(const SfxGrabBagItem& rItem); virtual ~SfxGrabBagItem(); - const std::map<OUString, com::sun::star::uno::Any>& GetGrabBag() const; + const std::map<OUString, com::sun::star::uno::Any>& GetGrabBag() const { return m_aMap;} virtual bool operator==(const SfxPoolItem&) const SAL_OVERRIDE; virtual SfxPoolItem* Clone(SfxItemPool* pPool = 0) const SAL_OVERRIDE; 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;} }; } diff --git a/include/svl/style.hxx b/include/svl/style.hxx index 3b936763886b..cabd150756bb 100644 --- a/include/svl/style.hxx +++ b/include/svl/style.hxx @@ -229,7 +229,7 @@ public: const OUString& GetAppName() const { return aAppName; } - SfxItemPool& GetPool(); + SfxItemPool& GetPool() { return rPool;} const SfxItemPool& GetPool() const { return rPool;} virtual SfxStyleSheetIteratorPtr CreateIterator(SfxStyleFamily, sal_uInt16 nMask); |