[Libreoffice-commits] .: comphelper/source

David Tardon dtardon at kemper.freedesktop.org
Sat Feb 26 08:09:40 PST 2011


 comphelper/source/container/embeddedobjectcontainer.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 64420464952dd37196ce5e97aa2ec614b8e78654
Author: David Tardon <dtardon at redhat.com>
Date:   Sat Feb 26 13:51:55 2011 +0100

    WaE: suggest parentheses around '&&' within '||'

diff --git a/comphelper/source/container/embeddedobjectcontainer.cxx b/comphelper/source/container/embeddedobjectcontainer.cxx
index c990358..f6599aa 100644
--- a/comphelper/source/container/embeddedobjectcontainer.cxx
+++ b/comphelper/source/container/embeddedobjectcontainer.cxx
@@ -1031,7 +1031,7 @@ sal_Bool EmbeddedObjectContainer::RemoveEmbeddedObject( const uno::Reference < e
 #if OSL_DEBUG_LEVEL > 1
     uno::Reference < container::XNameAccess > xAccess( pImpl->mxStorage, uno::UNO_QUERY );
     uno::Reference < embed::XLinkageSupport > xLink( xPersist, uno::UNO_QUERY );
-    sal_Bool bIsNotEmbedded = !xPersist.is() || xLink.is() && xLink->isLink();
+    sal_Bool bIsNotEmbedded = !xPersist.is() || ( xLink.is() && xLink->isLink() );
 
     // if the object has a persistance and the object is not a link than it must have persistence entry in the storage
     OSL_ENSURE( bIsNotEmbedded || xAccess->hasByName(aName), "Removing element not present in storage!" );


More information about the Libreoffice-commits mailing list