Kaydet (Commit) 386a85ed authored tarafından Michaël Lefèvre's avatar Michaël Lefèvre Kaydeden (comit) Stephan Bergmann

CppCheck cleaning : avoid static string comparison

Change-Id: I6a7375901fcec63892041aec8cc2d55ce7789724
Reviewed-on: https://gerrit.libreoffice.org/14848Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
Tested-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst e59015ef
......@@ -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))
......
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