diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-07-08 23:49:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-07-08 23:49:59 +0200 |
commit | 6f928deb55b5bcff3e8d11a5ace017732176e86a (patch) | |
tree | a7b2f13c845ffb7334092bbf1f248f4822fd29a8 /sw | |
parent | 394b054a2f987d99178b72aec23b2f7269c727a5 (diff) |
Avoid loplugin:unreffun in non-debug build
Change-Id: I1fbf5a355340e20de881a030bc75ebbfce960d4f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/access/accmap.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx index 6a0883f3b6ff..0716234e84fb 100644 --- a/sw/source/core/access/accmap.cxx +++ b/sw/source/core/access/accmap.cxx @@ -254,7 +254,9 @@ public: const SwFEShell *pFESh = nullptr, SwAccessibleObjShape_Impl **pSelShape = nullptr ) const; +#if OSL_DEBUG_LEVEL > 0 iterator begin() { return maMap.begin(); } +#endif iterator end() { return maMap.end(); } const_iterator cbegin() const { return maMap.cbegin(); } const_iterator cend() const { return maMap.cend(); } @@ -599,7 +601,9 @@ public: private: std::map <key_type,mapped_type,key_compare> maMap; public: +#if OSL_DEBUG_LEVEL > 0 iterator begin() { return maMap.begin(); } +#endif iterator end() { return maMap.end(); } iterator find(const key_type& key) { return maMap.find(key); } std::pair<iterator,bool> insert(const value_type& value ) { return maMap.insert(value); } |