summaryrefslogtreecommitdiffstats
path: root/sal
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-03-07 12:30:19 +0100
committerDavid Tardon <dtardon@redhat.com>2012-03-07 14:01:27 +0100
commit92b3308ecc6dc7acd7c892727d7673d26b44130e (patch)
tree19b63bf152d1bf883ebdb682efce4a12169af3a1 /sal
parentWaE: deprecated conversion from string constant to 'TCHAR*' (diff)
downloadcore-92b3308ecc6dc7acd7c892727d7673d26b44130e.tar.gz
core-92b3308ecc6dc7acd7c892727d7673d26b44130e.zip
WaE: suggest parentheses around '&&' within '||'
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/file_url.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/w32/file_url.cxx b/sal/osl/w32/file_url.cxx
index f662d6baf545..d6e74a2f4801 100644
--- a/sal/osl/w32/file_url.cxx
+++ b/sal/osl/w32/file_url.cxx
@@ -314,7 +314,7 @@ DWORD IsValidFilePath(rtl_uString *path, LPCTSTR *lppError, DWORD dwFlags, rtl_u
/* If we now reached the end of the path, everything is O.K. */
- if ( fValid && (!lpComponent || lpComponent && !*++lpComponent ) )
+ if ( fValid && (!lpComponent || !*++lpComponent ) )
{
lpComponent = NULL;
dwPathType |= PATHTYPE_IS_VOLUME;
@@ -446,7 +446,7 @@ static LPTSTR PathAddBackslash(LPTSTR lpPath, sal_Int32 nBufLen)
{
int nLen = _tcslen(lpPath);
- if ( !nLen || lpPath[nLen-1] != '\\' && lpPath[nLen-1] != '/' && nLen < nBufLen - 1 )
+ if ( !nLen || ( lpPath[nLen-1] != '\\' && lpPath[nLen-1] != '/' && nLen < nBufLen - 1 ) )
{
lpEndPath = lpPath + nLen;
*lpEndPath++ = '\\';