From deae1af649e247fd09e0522b4bcf0806603a5d9f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 18 Jul 2012 14:42:30 +0200 Subject: Fix sense of SAL_WARN_IF conditions Change-Id: Idd3dea4e42eb7f63447e1f804d90e991c801cdd3 --- comphelper/source/misc/configuration.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'comphelper') diff --git a/comphelper/source/misc/configuration.cxx b/comphelper/source/misc/configuration.cxx index 8954f4fbc0c3..383e35f78657 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); -- cgit