Kaydet (Commit) deae1af6 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix sense of SAL_WARN_IF conditions

Change-Id: Idd3dea4e42eb7f63447e1f804d90e991c801cdd3
üst aebf5bf2
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment