[Libreoffice-commits] .: dbaccess/inc dbaccess/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Dec 21 01:35:31 PST 2012


 dbaccess/inc/genericcontroller.hxx               |    3 ++-
 dbaccess/source/ui/browser/genericcontroller.cxx |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 0c4c0f610ae0f44c3ee23290aab1bd31e8f14d9b
Author: Tor Lillqvist <tlillqvist at suse.com>
Date:   Fri Dec 21 11:33:39 2012 +0200

    WaE: Unreachable code
    
    Change-Id: I366729dbd7f5f861c9233c0927b79ff7859114e4

diff --git a/dbaccess/inc/genericcontroller.hxx b/dbaccess/inc/genericcontroller.hxx
index 2316566..0880138 100644
--- a/dbaccess/inc/genericcontroller.hxx
+++ b/dbaccess/inc/genericcontroller.hxx
@@ -520,7 +520,8 @@ namespace dbaui
         virtual void SAL_CALL removeMouseClickHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMouseClickHandler >& xHandler ) throw (::com::sun::star::uno::RuntimeException);
 
     protected:
-#ifdef WNT
+#ifdef _MSC_VER
+        __declspec(noreturn)
         OGenericUnoController();    // never implemented
 #endif
     };
diff --git a/dbaccess/source/ui/browser/genericcontroller.cxx b/dbaccess/source/ui/browser/genericcontroller.cxx
index 9f24613..35eb6d3 100644
--- a/dbaccess/source/ui/browser/genericcontroller.cxx
+++ b/dbaccess/source/ui/browser/genericcontroller.cxx
@@ -208,8 +208,9 @@ OGenericUnoController::OGenericUnoController(const Reference< XMultiServiceFacto
     }
 }
 
-#ifdef WNT
+#ifdef _MSC_VER
 // -----------------------------------------------------------------------------
+__declspec(noreturn)
 OGenericUnoController::OGenericUnoController()
     :OGenericUnoController_Base( getMutex() )
     ,m_pView(NULL)


More information about the Libreoffice-commits mailing list