From b67e29e9adfe9423c086d06a133fc9c551f430e7 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 8 Jul 2013 14:02:40 +0200 Subject: -Werror,-Wlogical-not-parentheses (Clang trunk towards 3.4) ...apparently mistyped conditions happened to work as intended (E_None being 0). Change-Id: I3ffd849fc4790bfaea36d614b900eceae5f1e8eb --- sfx2/source/appl/sfxhelp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx index 4fecc9ef2c4e..aaed112b66f6 100644 --- a/sfx2/source/appl/sfxhelp.cxx +++ b/sfx2/source/appl/sfxhelp.cxx @@ -120,7 +120,7 @@ static OUString HelpLocaleString() OUString::createFromAscii(szHelpPath) + aLocaleStr; osl::DirectoryItem aDirItem; - if (!osl::DirectoryItem::get(sHelpPath, aDirItem) == osl::FileBase::E_None) + if (osl::DirectoryItem::get(sHelpPath, aDirItem) != osl::FileBase::E_None) { bOk = false; OUString sLang(aLocaleStr); @@ -131,7 +131,7 @@ static OUString HelpLocaleString() sLang = sLang.copy( 0, nSepPos ); sHelpPath = aBaseInstallPath + OUString::createFromAscii(szHelpPath) + sLang; - if (!osl::DirectoryItem::get(sHelpPath, aDirItem) == osl::FileBase::E_None) + if (osl::DirectoryItem::get(sHelpPath, aDirItem) != osl::FileBase::E_None) bOk = false; } } -- cgit