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 /sot | |
parent | ec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff) |
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stgstrms.cxx | 4 | ||||
-rw-r--r-- | sot/source/sdstor/stgstrms.hxx | 2 | ||||
-rw-r--r-- | sot/source/sdstor/storage.cxx | 4 |
3 files changed, 1 insertions, 9 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx index 62118b8a427c..e4214b2f2d71 100644 --- a/sot/source/sdstor/stgstrms.cxx +++ b/sot/source/sdstor/stgstrms.cxx @@ -532,10 +532,6 @@ bool StgStrm::SetSize( sal_Int32 nBytes ) // Return the # of allocated pages -sal_Int32 StgStrm::GetPages() const -{ - return ( nSize + nPageSize - 1 ) / nPageSize; -} //////////////////////////// class StgFATStrm diff --git a/sot/source/sdstor/stgstrms.hxx b/sot/source/sdstor/stgstrms.hxx index a1debe22dd32..32dd1bdafc72 100644 --- a/sot/source/sdstor/stgstrms.hxx +++ b/sot/source/sdstor/stgstrms.hxx @@ -82,7 +82,7 @@ public: sal_Int32 GetSize() const { return nSize; } sal_Int32 GetPage() const { return nPage; } short GetPageSize() const { return nPageSize; } - sal_Int32 GetPages() const; + sal_Int32 GetPages() const { return ( nSize + nPageSize - 1 ) / nPageSize;} short GetOffset() const { return nOffset;} void SetEntry( StgDirEntry& ); virtual bool SetSize( sal_Int32 ); diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx index 217df328ee83..e4242e132f9b 100644 --- a/sot/source/sdstor/storage.cxx +++ b/sot/source/sdstor/storage.cxx @@ -614,10 +614,6 @@ const OUString & SotStorage::GetName() const return m_aName; } -const OString& SotStorage::GetKey() const -{ - return m_aKey; -} void SotStorage::ResetError() { |