diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-01-31 12:34:32 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-02-01 06:46:08 +0100 |
commit | 6b33a41fcce8e045e4dc9a6775084f8555afaf41 (patch) | |
tree | 9f1614d3cefe3b7a101811e03c0b7fbc0ca6d026 /dbaccess | |
parent | 8f43170f121443e8320d42c21b3dba8ffe8112b3 (diff) |
dbaccess: MSVC: pragma warning: make more specific, remove obsolete
Change-Id: I0066b2de769a412cb04bcec7cdd8401f42b9dcf3
Reviewed-on: https://gerrit.libreoffice.org/48972
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/browser/genericcontroller.cxx | 29 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/adodatalinks.cxx | 7 | ||||
-rw-r--r-- | dbaccess/win32/source/odbcconfig/odbcconfig.cxx | 9 |
3 files changed, 0 insertions, 45 deletions
diff --git a/dbaccess/source/ui/browser/genericcontroller.cxx b/dbaccess/source/ui/browser/genericcontroller.cxx index dc66cd102eb0..0c3ebaf937e3 100644 --- a/dbaccess/source/ui/browser/genericcontroller.cxx +++ b/dbaccess/source/ui/browser/genericcontroller.cxx @@ -176,35 +176,6 @@ OGenericUnoController::OGenericUnoController(const Reference< XComponentContext } } -#ifdef _MSC_VER - -#pragma warning(push) -#pragma warning(disable:4702) - -OGenericUnoController::OGenericUnoController() - :OGenericUnoController_Base( getMutex() ) - ,m_pView(nullptr) -#ifdef DBG_UTIL - ,m_bDescribingSupportedFeatures( false ) -#endif - ,m_aAsyncInvalidateAll(LINK(this, OGenericUnoController, OnAsyncInvalidateAll)) - ,m_aAsyncCloseTask(LINK(this, OGenericUnoController, OnAsyncCloseTask)) - ,m_aCurrentFrame( *this ) - ,m_bPreview(false) - ,m_bReadOnly(false) - ,m_bCurrentlyModified(false) -{ - SAL_WARN("dbaccess.ui", "OGenericUnoController::OGenericUnoController: illegal call!" ); - // This ctor only exists because the MSVC compiler complained about an unresolved external - // symbol. It should not be used at all. Since using it yields strange runtime problems, - // we simply abort here. - abort(); -} - -#pragma warning(pop) - -#endif - OGenericUnoController::~OGenericUnoController() { diff --git a/dbaccess/source/ui/dlg/adodatalinks.cxx b/dbaccess/source/ui/dlg/adodatalinks.cxx index 4e0db429b773..72fd0beb0e6d 100644 --- a/dbaccess/source/ui/dlg/adodatalinks.cxx +++ b/dbaccess/source/ui/dlg/adodatalinks.cxx @@ -19,17 +19,10 @@ #if defined(_WIN32) -#if defined _MSC_VER -#pragma warning(push, 1) -#pragma warning(disable: 4917) -#endif // LO/windows.h conflict #undef WB_LEFT #undef WB_RIGHT #include <msdasc.h> -#if defined _MSC_VER -#pragma warning(push, 1) -#endif #include <o3tl/char16_t2wchar_t.hxx> diff --git a/dbaccess/win32/source/odbcconfig/odbcconfig.cxx b/dbaccess/win32/source/odbcconfig/odbcconfig.cxx index 73eb04a74d57..f9add1bef2f1 100644 --- a/dbaccess/win32/source/odbcconfig/odbcconfig.cxx +++ b/dbaccess/win32/source/odbcconfig/odbcconfig.cxx @@ -18,21 +18,12 @@ */ -#ifdef _MSC_VER -#pragma warning(push, 1) -#pragma warning(disable:4005) -#endif - #if !defined WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN #endif #include <windows.h> #include <sqlext.h> -#ifdef _MSC_VER -#pragma warning(pop) -#endif - // the name of the library which contains the SQLManageDataSources function #define ODBC_UI_LIB_NAME L"ODBCCP32.DLL" |