summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorMichaël Lefèvre <lefevre00@yahoo.fr>2015-03-12 22:27:09 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-13 14:20:04 +0000
commit386a85ed50a3e4832644072950a30304ba6c58a6 (patch)
tree86626f9e73bddf6cfa60a729166babcd6815e0e5 /sal
parente59015ef832178451ba2fca2fe7054fcf5090e9a (diff)
CppCheck cleaning : avoid static string comparison
Change-Id: I6a7375901fcec63892041aec8cc2d55ce7789724 Reviewed-on: https://gerrit.libreoffice.org/14848 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/profile.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx
index 27bc9d71acfe..eb9b779b14d0 100644
--- a/sal/osl/w32/profile.cxx
+++ b/sal/osl/w32/profile.cxx
@@ -2150,8 +2150,7 @@ static sal_Bool lookupProfile(const sal_Unicode *strPath, const sal_Unicode *str
/* open sversion.ini in the users directory, and try to locate the entry
with the highest version for StarOffice */
- if ((strcmp(SVERSION_LOCATION, SVERSION_FALLBACK) != 0) &&
- (osl_getProfileName(strSVLocation, strSVName, &strSVProfile)))
+ if ( osl_getProfileName(strSVLocation, strSVName, &strSVProfile) )
{
hProfile = osl_openProfile(strSVProfile, osl_Profile_READLOCK);
if (hProfile)
@@ -2389,9 +2388,7 @@ static sal_Bool lookupProfile(const sal_Unicode *strPath, const sal_Unicode *str
osl_closeProfile(hProfile);
/* if not found, try the fallback */
- if ((Buffer[0] == '\0')
- && (strcmp(SVERSION_LOCATION, SVERSION_FALLBACK)
- != 0))
+ if (Buffer[0] == '\0')
{
if (osl_getProfileName(
strSVFallback, strSVName, &strSVProfile))