summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-12-21 11:33:39 +0200
committerTor Lillqvist <tlillqvist@suse.com>2012-12-21 11:34:35 +0200
commit0c4c0f610ae0f44c3ee23290aab1bd31e8f14d9b (patch)
treeafe5227f0ae3eca8e08619188cc956041686043b /dbaccess
parent1b718682ade370c06b2d9539084ab889905ab187 (diff)
WaE: Unreachable code
Change-Id: I366729dbd7f5f861c9233c0927b79ff7859114e4
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/inc/genericcontroller.hxx3
-rw-r--r--dbaccess/source/ui/browser/genericcontroller.cxx3
2 files changed, 4 insertions, 2 deletions
diff --git a/dbaccess/inc/genericcontroller.hxx b/dbaccess/inc/genericcontroller.hxx
index 2316566ec616..0880138738f5 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 9f24613fc297..35eb6d359fba 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)