[Libreoffice-commits] .: toolkit/inc toolkit/source unusedcode.easy

Caolán McNamara caolan at kemper.freedesktop.org
Tue Apr 24 12:10:38 PDT 2012


 toolkit/inc/toolkit/controls/unocontrolmodel.hxx |   11 ++++++++++-
 toolkit/source/controls/unocontrolmodel.cxx      |   12 ------------
 unusedcode.easy                                  |    1 -
 3 files changed, 10 insertions(+), 14 deletions(-)

New commits:
commit d8f145d1ebe8836f559ba47a1978063d922c6294
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Apr 24 16:21:16 2012 +0100

    save the next guy from getting caught with msvc template requirements

diff --git a/toolkit/inc/toolkit/controls/unocontrolmodel.hxx b/toolkit/inc/toolkit/controls/unocontrolmodel.hxx
index 99722b7..e0d6aa8 100644
--- a/toolkit/inc/toolkit/controls/unocontrolmodel.hxx
+++ b/toolkit/inc/toolkit/controls/unocontrolmodel.hxx
@@ -109,7 +109,16 @@ protected:
             ) const;
 
 protected:
-                UnoControlModel();
+    UnoControlModel() //do not use! needed by MSVC at compile time to satisfy WeakAggImplHelper7
+        : UnoControlModel_Base()
+        , MutexAndBroadcastHelper()
+        , OPropertySetHelper( BrdcstHelper )
+        , maDisposeListeners( *this )
+        , maContext( ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >() )
+    {
+        assert(false);
+    }
+
 public:
                 UnoControlModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
                 UnoControlModel( const UnoControlModel& rModel );
diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx
index 2d0a2fd..9b24903 100644
--- a/toolkit/source/controls/unocontrolmodel.cxx
+++ b/toolkit/source/controls/unocontrolmodel.cxx
@@ -122,18 +122,6 @@ static void lcl_ImplMergeFontProperty( FontDescriptor& rFD, sal_uInt16 nPropId,
 //  ----------------------------------------------------
 //  class UnoControlModel
 //  ----------------------------------------------------
-UnoControlModel::UnoControlModel()
-    :UnoControlModel_Base()
-    ,MutexAndBroadcastHelper()
-    ,OPropertySetHelper( BrdcstHelper )
-    ,maDisposeListeners( *this )
-    ,maContext( ::comphelper::getProcessServiceFactory() )
-{
-    OSL_ENSURE( false, "UnoControlModel::UnoControlModel: not implemented. Well, not really." );
-    // just implemented to let the various FooImplInheritanceHelper compile, you should use the
-    // version taking a service factory
-}
-
 UnoControlModel::UnoControlModel( const Reference< XMultiServiceFactory >& i_factory )
     :UnoControlModel_Base()
     ,MutexAndBroadcastHelper()
diff --git a/unusedcode.easy b/unusedcode.easy
index d1f5e1d..938fcd7 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -261,7 +261,6 @@ TempFile::IsValid() const
 TextEngine::GetLeftMargin() const
 TransferableDataHelper::GetInterface(com::sun::star::datatransfer::DataFlavor const&, com::sun::star::uno::Reference<com::sun::star::uno::XInterface>&)
 TypeDescriptor_Init_Impl::~TypeDescriptor_Init_Impl()
-UnoControlModel::UnoControlModel()
 VCLUnoHelper::CreatePointer()
 VCLXPrinterServer::getImplementationId()
 VCLXPrinterServer::getTypes()


More information about the Libreoffice-commits mailing list