diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-01-04 12:21:09 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-01-04 12:46:59 +0100 |
commit | 980a6e552502f02f12c15bfb1c9f8e6269499f4b (patch) | |
tree | 7036680d893bc42a4e220252765888b0cba8734b | |
parent | d88bf2aa5648caa01edaf2252166d0724fad0a49 (diff) |
cppcheck: Clarify expression with parentheses
Change-Id: I71333af38adba1d916138835e28419bb62cd1db4
-rw-r--r-- | oox/source/vml/vmlinputstream.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/oox/source/vml/vmlinputstream.cxx b/oox/source/vml/vmlinputstream.cxx index edd4cd4b2898..b8d86122ca67 100644 --- a/oox/source/vml/vmlinputstream.cxx +++ b/oox/source/vml/vmlinputstream.cxx @@ -98,11 +98,11 @@ void lclProcessAttribs( OStringBuffer& rBuffer, const sal_Char* pcBeg, const sal { // pcNameBeg points to begin of attribute name, find equality sign const sal_Char* pcEqualSign = lclFindCharacter( pcNameBeg, pcEnd, '=' ); - if( (bOk = pcEqualSign < pcEnd) == true ) + if ((bOk = (pcEqualSign < pcEnd)) == true) { // find end of attribute name (ignore whitespace between name and equality sign) const sal_Char* pcNameEnd = lclTrimWhiteSpaceFromEnd( pcNameBeg, pcEqualSign ); - if( (bOk = pcNameBeg < pcNameEnd) == true ) + if( (bOk = (pcNameBeg < pcNameEnd)) == true ) { // find begin of attribute value (must be single or double quote) const sal_Char* pcValueBeg = lclFindNonWhiteSpace( pcEqualSign + 1, pcEnd ); @@ -110,7 +110,7 @@ void lclProcessAttribs( OStringBuffer& rBuffer, const sal_Char* pcBeg, const sal { // find end of attribute value (matching quote character) const sal_Char* pcValueEnd = lclFindCharacter( pcValueBeg + 1, pcEnd, *pcValueBeg ); - if( (bOk = pcValueEnd < pcEnd) == true ) + if( (bOk = (pcValueEnd < pcEnd)) == true ) { ++pcValueEnd; OString aAttribName( pcNameBeg, static_cast< sal_Int32 >( pcNameEnd - pcNameBeg ) ); |