[Libreoffice-commits] core.git: shell/source

Stephan Bergmann sbergman at redhat.com
Mon Jul 13 09:40:17 PDT 2015


 shell/source/win32/ooofilereader/basereader.cxx     |    9 ++-------
 shell/source/win32/ooofilereader/contentreader.cxx  |   13 ++++---------
 shell/source/win32/ooofilereader/metainforeader.cxx |   13 ++++---------
 shell/source/win32/shlxthandler/util/utilities.cxx  |    7 +------
 4 files changed, 11 insertions(+), 31 deletions(-)

New commits:
commit 67badfc9da5254d7c9fba2101157c6f6230611de
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jul 13 18:39:42 2015 +0200

    Code deliberately not linking against sal just can't use OSL_ENSURE
    
    Change-Id: I20820ea382ac9933bf2c6118d466625120b49d67

diff --git a/shell/source/win32/ooofilereader/basereader.cxx b/shell/source/win32/ooofilereader/basereader.cxx
index 503aed0..f4568aa 100644
--- a/shell/source/win32/ooofilereader/basereader.cxx
+++ b/shell/source/win32/ooofilereader/basereader.cxx
@@ -17,11 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#undef OSL_DEBUG_LEVEL
-
-
-#include <osl/diagnose.h>
-
 #include "internal/basereader.hxx"
 
 #include "internal/xml_parser.hxx"
@@ -81,11 +76,11 @@ void CBaseReader::Initialize( const std::string& ContentName)
     }
     catch(std::exception& ex)
     {
-        OSL_ENSURE( false, ex.what() );
+        // OSL_ENSURE( false, ex.what() );
     }
     catch(...)
     {
-        OSL_ENSURE(false, "Unknown error");
+        // OSL_ENSURE(false, "Unknown error");
     }
 }
 
diff --git a/shell/source/win32/ooofilereader/contentreader.cxx b/shell/source/win32/ooofilereader/contentreader.cxx
index 0b9ef84..8157abb 100644
--- a/shell/source/win32/ooofilereader/contentreader.cxx
+++ b/shell/source/win32/ooofilereader/contentreader.cxx
@@ -17,11 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#undef OSL_DEBUG_LEVEL
-
-
-#include <osl/diagnose.h>
-
 #include "internal/contentreader.hxx"
 #include "dummytag.hxx"
 #include "simpletag.hxx"
@@ -41,11 +36,11 @@ CBaseReader( DocumentName )
     }
     catch(xml_parser_exception& ex)
     {
-        OSL_ENSURE(false, ex.what());
+        // OSL_ENSURE(false, ex.what());
     }
     catch(...)
     {
-        OSL_ENSURE(false, "Unknown error");
+        // OSL_ENSURE(false, "Unknown error");
     }
 }
 
@@ -59,11 +54,11 @@ try
     }
     catch(xml_parser_exception& ex)
     {
-        OSL_ENSURE(false, ex.what());
+        // OSL_ENSURE(false, ex.what());
     }
     catch(...)
     {
-        OSL_ENSURE(false, "Unknown error");
+        // OSL_ENSURE(false, "Unknown error");
     }
 }
 
diff --git a/shell/source/win32/ooofilereader/metainforeader.cxx b/shell/source/win32/ooofilereader/metainforeader.cxx
index 442c12a..d9c08c7 100644
--- a/shell/source/win32/ooofilereader/metainforeader.cxx
+++ b/shell/source/win32/ooofilereader/metainforeader.cxx
@@ -17,11 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#undef OSL_DEBUG_LEVEL
-
-
-#include <osl/diagnose.h>
-
 #include "internal/metainforeader.hxx"
 #include "dummytag.hxx"
 #include "simpletag.hxx"
@@ -60,11 +55,11 @@ CBaseReader( DocumentName )
     }
     catch(xml_parser_exception& ex)
     {
-        OSL_ENSURE(false, ex.what());
+        // OSL_ENSURE(false, ex.what());
     }
     catch(...)
     {
-        OSL_ENSURE(false, "Unknown error");
+        // OSL_ENSURE(false, "Unknown error");
     }
 }
 
@@ -97,11 +92,11 @@ try
     }
     catch(xml_parser_exception& ex)
     {
-        OSL_ENSURE(false, ex.what());
+        // OSL_ENSURE(false, ex.what());
     }
     catch(...)
     {
-        OSL_ENSURE(false, "Unknown error");
+        // OSL_ENSURE(false, "Unknown error");
     }
 
 }
diff --git a/shell/source/win32/shlxthandler/util/utilities.cxx b/shell/source/win32/shlxthandler/util/utilities.cxx
index 8712aa2..18ccdb0 100644
--- a/shell/source/win32/shlxthandler/util/utilities.cxx
+++ b/shell/source/win32/shlxthandler/util/utilities.cxx
@@ -17,11 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#undef OSL_DEBUG_LEVEL
-
-
-#include <osl/diagnose.h>
-
 #include "internal/config.hxx"
 #include "internal/utilities.hxx"
 
@@ -97,7 +92,7 @@ std::wstring GetResString(int ResId)
     int rc = LoadStringW( GetModuleHandleW(MODULE_NAME), ResId, szResStr, sizeof(szResStr) );
 
     OutputDebugStringFormat( "GetResString: read %d chars\n", rc );
-    OSL_ENSURE(rc, "String resource not found");
+    // OSL_ENSURE(rc, "String resource not found");
 
     return std::wstring(szResStr);
 }


More information about the Libreoffice-commits mailing list