Apache OpenOffice (AOO) Bugzilla – Issue 110801
package: werror in owriteablestream.cxx (parentheses around '&&' within '||')
Last modified: 2017-05-20 09:30:34 UTC
this is a follow-up to the only-halfway fixed issue 103617 Only one occurrence of the && clarification parentheses was fixed, not the one in the next line. I wonder how QA could set that other issue to verified :-/ /ooo/build/compile/package/source/xstor/owriteablestream.cxx: In member function 'virtual com::sun::star::uno::Any OWriteStream::getPropertyValue(const rtl::OUString&)': /ooo/build/compile/package/source/xstor/owriteablestream.cxx:3282: error: suggest parentheses around '&&' within '||' dmake: Error code 1, while making '../../unxlngi6.pro/slo/owriteablestream.obj' Patch keeping meaning, silencing the warning --- package/source/xstor/owriteablestream.cxx 2010-04-10 01:17:35.214512099 +0200 +++ package/source/xstor/owriteablestream.cxx 2010-04-12 14:31:04.863492747 +0200 @@ -3279,7 +3279,7 @@ if ( ( ( m_pData->m_nStorageType == PACKAGE_STORAGE || m_pData- >m_nStorageType == OFOPXML_STORAGE ) && aPropertyName.equalsAscii( "MediaType" ) ) - || m_pData->m_nStorageType == PACKAGE_STORAGE && aPropertyName.equalsAscii( "Encrypted" ) + || ( m_pData->m_nStorageType == PACKAGE_STORAGE && aPropertyName.equalsAscii( "Encrypted" ) ) || aPropertyName.equalsAscii( "Compressed" ) ) { m_pImpl->GetStreamProperties();
Taking the issue over, since it is my area. Thank you for the patch. I will integrate it in one of the next OOo3.3 cws's.
yours as described by yourself
Integrated in fwk139.
cd: Verified on CWS fwk139.