diff --git a/cppuhelper/source/weak.cxx b/cppuhelper/source/weak.cxx index 0119123aed74..f45f433e9ce2 100644 --- a/cppuhelper/source/weak.cxx +++ b/cppuhelper/source/weak.cxx @@ -205,16 +205,6 @@ void SAL_CALL OWeakConnectionPoint::removeReference(const Reference< XReference //-- OWeakObject ------------------------------------------------------- - -#ifdef _MSC_VER -// Accidentally occurs in msvc mapfile = > had to be outlined. -OWeakObject::OWeakObject() - : m_refCount( 0 ), - m_pWeakConnectionPoint( nullptr ) -{ -} -#endif - // XInterface Any SAL_CALL OWeakObject::queryInterface( const Type & rType ) { diff --git a/include/cppuhelper/weak.hxx b/include/cppuhelper/weak.hxx index ef9ed7ffa807..b8e4e9955d9b 100644 --- a/include/cppuhelper/weak.hxx +++ b/include/cppuhelper/weak.hxx @@ -95,12 +95,6 @@ public: {} /// @endcond -#ifdef _MSC_VER - /** Default Constructor. Sets the reference count to zero. - Accidentally occurs in msvc mapfile = > had to be outlined. - */ - OWeakObject(); -#else /** Default Constructor. Sets the reference count to zero. */ OWeakObject() @@ -108,7 +102,7 @@ public: , m_pWeakConnectionPoint( NULL ) , m_pReserved(NULL) {} -#endif + /** Dummy copy constructor. Set the reference count to zero. */ OWeakObject( const OWeakObject & )