summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-21 20:34:12 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-22 08:22:32 +0100
commit01fe7b72389bb2f8de45d8319728807d8048b1d3 (patch)
tree6bea04371cb07c1d0d705b72f4513638891c02e4 /package
parent8fd7a53d3cf1ed788c705cafb443801203787c9d (diff)
bool improvements
Change-Id: I80dfcb60878d9e280e8a03297ccc4833277c235d
Diffstat (limited to 'package')
-rw-r--r--package/source/xstor/ocompinstream.cxx4
-rw-r--r--package/source/xstor/oseekinstream.cxx2
-rw-r--r--package/source/xstor/owriteablestream.cxx6
-rw-r--r--package/source/xstor/xstorage.cxx6
4 files changed, 9 insertions, 9 deletions
diff --git a/package/source/xstor/ocompinstream.cxx b/package/source/xstor/ocompinstream.cxx
index 1b5bab70baac..f0cfc517e258 100644
--- a/package/source/xstor/ocompinstream.cxx
+++ b/package/source/xstor/ocompinstream.cxx
@@ -90,7 +90,7 @@ uno::Any SAL_CALL OInputCompStream::queryInterface( const uno::Type& rType )
, static_cast<beans::XPropertySet*> ( this )
, static_cast<embed::XExtendedStorageStream*> ( this ) );
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
return aReturn ;
if ( m_nStorageType == embed::StorageFormats::OFOPXML )
@@ -99,7 +99,7 @@ uno::Any SAL_CALL OInputCompStream::queryInterface( const uno::Type& rType )
( rType
, static_cast<embed::XRelationshipAccess*> ( this ) );
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
return aReturn ;
}
diff --git a/package/source/xstor/oseekinstream.cxx b/package/source/xstor/oseekinstream.cxx
index 15d06c6abb2d..6abdcf3794e2 100644
--- a/package/source/xstor/oseekinstream.cxx
+++ b/package/source/xstor/oseekinstream.cxx
@@ -86,7 +86,7 @@ uno::Any SAL_CALL OInputSeekStream::queryInterface( const uno::Type& rType )
uno::Any aReturn( ::cppu::queryInterface( rType,
static_cast< io::XSeekable* >( this ) ) );
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
{
return aReturn ;
}
diff --git a/package/source/xstor/owriteablestream.cxx b/package/source/xstor/owriteablestream.cxx
index 63e2b7044a5d..eb32aeac92b1 100644
--- a/package/source/xstor/owriteablestream.cxx
+++ b/package/source/xstor/owriteablestream.cxx
@@ -1890,7 +1890,7 @@ uno::Any SAL_CALL OWriteStream::queryInterface( const uno::Type& rType )
, static_cast<lang::XComponent*> ( this )
, static_cast<beans::XPropertySet*> ( this ) );
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
return aReturn ;
if ( m_pData->m_nStorageType == embed::StorageFormats::PACKAGE )
@@ -1907,7 +1907,7 @@ uno::Any SAL_CALL OWriteStream::queryInterface( const uno::Type& rType )
, static_cast<embed::XRelationshipAccess*> ( this ) );
}
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
return aReturn ;
if ( m_bTransacted )
@@ -1917,7 +1917,7 @@ uno::Any SAL_CALL OWriteStream::queryInterface( const uno::Type& rType )
, static_cast<embed::XTransactedObject*> ( this )
, static_cast<embed::XTransactionBroadcaster*> ( this ) );
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
return aReturn ;
}
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx
index 9e2ffb72730d..16483d6f3944 100644
--- a/package/source/xstor/xstorage.cxx
+++ b/package/source/xstor/xstorage.cxx
@@ -2204,7 +2204,7 @@ uno::Any SAL_CALL OStorage::queryInterface( const uno::Type& rType )
, static_cast<beans::XPropertySet*> ( this )
, static_cast<embed::XOptimizedStorage*> ( this ) );
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
return aReturn ;
aReturn <<= ::cppu::queryInterface
@@ -2212,7 +2212,7 @@ uno::Any SAL_CALL OStorage::queryInterface( const uno::Type& rType )
, static_cast<embed::XHierarchicalStorageAccess*> ( this )
, static_cast<embed::XHierarchicalStorageAccess2*> ( this ) );
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
return aReturn ;
if ( m_pData->m_nStorageType == embed::StorageFormats::PACKAGE )
@@ -2240,7 +2240,7 @@ uno::Any SAL_CALL OStorage::queryInterface( const uno::Type& rType )
, static_cast<embed::XRelationshipAccess*> ( this ) );
}
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
return aReturn ;
return OWeakObject::queryInterface( rType );