[Libreoffice-commits] .: comphelper/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Wed Jul 18 05:42:50 PDT 2012


 comphelper/source/misc/configuration.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit deae1af649e247fd09e0522b4bcf0806603a5d9f
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jul 18 14:42:30 2012 +0200

    Fix sense of SAL_WARN_IF conditions
    
    Change-Id: Idd3dea4e42eb7f63447e1f804d90e991c801cdd3

diff --git a/comphelper/source/misc/configuration.cxx b/comphelper/source/misc/configuration.cxx
index 8954f4f..383e35f 100644
--- a/comphelper/source/misc/configuration.cxx
+++ b/comphelper/source/misc/configuration.cxx
@@ -199,7 +199,7 @@ rtl::OUString comphelper::detail::ConfigurationWrapper::extendLocalizedPath(
             css::uno::UNO_QUERY_THROW)->
         getLocale());
     SAL_WARN_IF(
-        locale.Language.indexOf('-') == -1, "comphelper",
+        locale.Language.indexOf('-') != -1, "comphelper",
         "Locale language \"" << locale.Language << "\" contains \"-\"");
     assert(locale.Language.indexOf('&') == -1);
     assert(locale.Language.indexOf('"') == -1);
@@ -212,7 +212,7 @@ rtl::OUString comphelper::detail::ConfigurationWrapper::extendLocalizedPath(
     if (!locale.Country.isEmpty()) {
         buf.append('-');
         SAL_WARN_IF(
-            locale.Country.indexOf('-') == -1, "comphelper",
+            locale.Country.indexOf('-') != -1, "comphelper",
             "Locale language \"" << locale.Country << "\" contains \"-\"");
         assert(locale.Country.indexOf('&') == -1);
         assert(locale.Country.indexOf('"') == -1);


More information about the Libreoffice-commits mailing list