diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-25 14:57:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-11 14:12:25 +0200 |
commit | dac4ca5f682fdd0c3eee7f7ee1d98c9b3c8b7ce4 (patch) | |
tree | f0f66445c3f396759c41d7e3294e728653dbfa88 /cppuhelper | |
parent | 28b6325901138a6267320902ec889fc434ddde91 (diff) |
new loplugin: externalandnotdefined
Find "missing headers," where a function is declared directly in the
.cxx (as extern) and not defined, and should arguably instead be declared
in an include file.
Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/implbase.cxx | 10 | ||||
-rw-r--r-- | cppuhelper/source/implbase_ex.cxx | 10 |
2 files changed, 9 insertions, 11 deletions
diff --git a/cppuhelper/source/implbase.cxx b/cppuhelper/source/implbase.cxx index adfab032a2a5..1ffb856a9bb3 100644 --- a/cppuhelper/source/implbase.cxx +++ b/cppuhelper/source/implbase.cxx @@ -33,19 +33,9 @@ using namespace ::com::sun::star::uno; using rtl::OUString; using rtl::OString; -namespace -{ - class theImplHelperInitMutex : public rtl::Static<Mutex, theImplHelperInitMutex>{}; -} - namespace cppu { -Mutex & SAL_CALL getImplHelperInitMutex(void) -{ - return theImplHelperInitMutex::get(); -} - // ClassDataBase ClassDataBase::ClassDataBase() diff --git a/cppuhelper/source/implbase_ex.cxx b/cppuhelper/source/implbase_ex.cxx index 0841603c6163..1c85b1c81585 100644 --- a/cppuhelper/source/implbase_ex.cxx +++ b/cppuhelper/source/implbase_ex.cxx @@ -37,13 +37,21 @@ using rtl::OString; using rtl::OUString; using rtl::OUStringBuffer; +namespace +{ + class theImplHelperInitMutex : public rtl::Static<Mutex, theImplHelperInitMutex>{}; +} + namespace cppu { /** Shared mutex for implementation helper initialization. Not for public use. */ -::osl::Mutex & SAL_CALL getImplHelperInitMutex(void); +::osl::Mutex & SAL_CALL getImplHelperInitMutex(void) +{ + return theImplHelperInitMutex::get(); +} static inline void checkInterface( Type const & rType ) |