From 92b3308ecc6dc7acd7c892727d7673d26b44130e Mon Sep 17 00:00:00 2001 From: David Tardon Date: Wed, 7 Mar 2012 12:30:19 +0100 Subject: WaE: suggest parentheses around '&&' within '||' --- sal/osl/w32/file_url.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sal/osl') 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++ = '\\'; -- cgit