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 /registry | |
parent | ec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff) |
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'registry')
-rw-r--r-- | registry/source/reflread.cxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx index 1eaf9552e299..f405645f5bab 100644 --- a/registry/source/reflread.cxx +++ b/registry/source/reflread.cxx @@ -597,7 +597,7 @@ public: } } - sal_uInt32 parseIndex(); + sal_uInt32 parseIndex() { return ((m_numOfEntries ? sizeof(sal_uInt16) : 0) + (m_numOfEntries * m_FIELD_ENTRY_SIZE));} const sal_Char* getFieldName(sal_uInt16 index); const sal_Char* getFieldType(sal_uInt16 index); @@ -608,10 +608,6 @@ public: const sal_Char* getFieldFileName(sal_uInt16 index); }; -sal_uInt32 FieldList::parseIndex() -{ - return ((m_numOfEntries ? sizeof(sal_uInt16) : 0) + (m_numOfEntries * m_FIELD_ENTRY_SIZE)); -} const sal_Char* FieldList::getFieldName(sal_uInt16 index) { @@ -766,7 +762,7 @@ public: } } - sal_uInt32 parseIndex(); + sal_uInt32 parseIndex() { return ((m_numOfEntries ? sizeof(sal_uInt16) : 0) + (m_numOfEntries * m_REFERENCE_ENTRY_SIZE));} const sal_Char* getReferenceName(sal_uInt16 index); RTReferenceType getReferenceType(sal_uInt16 index); @@ -774,10 +770,6 @@ public: RTFieldAccess getReferenceAccess(sal_uInt16 index); }; -sal_uInt32 ReferenceList::parseIndex() -{ - return ((m_numOfEntries ? sizeof(sal_uInt16) : 0) + (m_numOfEntries * m_REFERENCE_ENTRY_SIZE)); -} const sal_Char* ReferenceList::getReferenceName(sal_uInt16 index) { |