summaryrefslogtreecommitdiff
path: root/svl/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-21 17:51:25 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-21 18:24:05 +0100
commit5f755f0a62e150bf7c9857bac43ac6cc55ef3e45 (patch)
treef7a8ba5cd48deda4357c84e7ee02e19a6b8aba24 /svl/source
parent9eefbbe5de26652566b7fc58521a0e9c44b53119 (diff)
bool improvements
Change-Id: I5c72b0bc34d87312437ae32a506567c3fb3bfa19
Diffstat (limited to 'svl/source')
-rw-r--r--svl/source/fsstor/fsstorage.cxx2
-rw-r--r--svl/source/fsstor/oinputstreamcontainer.cxx2
-rw-r--r--svl/source/fsstor/ostreamcontainer.cxx12
-rw-r--r--svl/source/items/srchitem.cxx24
4 files changed, 20 insertions, 20 deletions
diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx
index f59ca366559e..00ba968ffd54 100644
--- a/svl/source/fsstor/fsstorage.cxx
+++ b/svl/source/fsstor/fsstorage.cxx
@@ -301,7 +301,7 @@ uno::Any SAL_CALL FSStorage::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 ;
return OWeakObject::queryInterface( rType );
diff --git a/svl/source/fsstor/oinputstreamcontainer.cxx b/svl/source/fsstor/oinputstreamcontainer.cxx
index 3c4caa674fd7..05be27884129 100644
--- a/svl/source/fsstor/oinputstreamcontainer.cxx
+++ b/svl/source/fsstor/oinputstreamcontainer.cxx
@@ -94,7 +94,7 @@ uno::Any SAL_CALL OFSInputStreamContainer::queryInterface( const uno::Type& rTyp
static_cast< io::XStream* >( this ),
static_cast< io::XInputStream* >( this ) ) );
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
return aReturn ;
return ::cppu::OWeakObject::queryInterface( rType ) ;
diff --git a/svl/source/fsstor/ostreamcontainer.cxx b/svl/source/fsstor/ostreamcontainer.cxx
index 0089784c18da..ce02f524f6a2 100644
--- a/svl/source/fsstor/ostreamcontainer.cxx
+++ b/svl/source/fsstor/ostreamcontainer.cxx
@@ -75,7 +75,7 @@ uno::Any SAL_CALL OFSStreamContainer::queryInterface( const uno::Type& rType )
, static_cast<embed::XExtendedStorageStream*> ( this )
, static_cast<lang::XComponent*> ( this ) );
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
return aReturn ;
if ( m_xSeekable.is() )
@@ -84,7 +84,7 @@ uno::Any SAL_CALL OFSStreamContainer::queryInterface( const uno::Type& rType )
( rType
, static_cast<io::XSeekable*> ( this ) );
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
return aReturn ;
}
@@ -94,7 +94,7 @@ uno::Any SAL_CALL OFSStreamContainer::queryInterface( const uno::Type& rType )
( rType
, static_cast<io::XInputStream*> ( this ) );
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
return aReturn ;
}
if ( m_xOutputStream.is() )
@@ -103,7 +103,7 @@ uno::Any SAL_CALL OFSStreamContainer::queryInterface( const uno::Type& rType )
( rType
, static_cast<io::XOutputStream*> ( this ) );
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
return aReturn ;
}
if ( m_xTruncate.is() )
@@ -112,7 +112,7 @@ uno::Any SAL_CALL OFSStreamContainer::queryInterface( const uno::Type& rType )
( rType
, static_cast<io::XTruncate*> ( this ) );
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
return aReturn ;
}
if ( m_xAsyncOutputMonitor.is() )
@@ -121,7 +121,7 @@ uno::Any SAL_CALL OFSStreamContainer::queryInterface( const uno::Type& rType )
( rType
, static_cast<io::XAsyncOutputMonitor*> ( this ) );
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
return aReturn ;
}
diff --git a/svl/source/items/srchitem.cxx b/svl/source/items/srchitem.cxx
index 3db3d80c5845..8ab36d37ceb1 100644
--- a/svl/source/items/srchitem.cxx
+++ b/svl/source/items/srchitem.cxx
@@ -465,13 +465,13 @@ bool SvxSearchItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nM
{
if ( aSeq[i].Name == SRCH_PARA_OPTIONS )
{
- if ( ( aSeq[i].Value >>= aSearchOpt ) == sal_True )
+ if ( aSeq[i].Value >>= aSearchOpt )
++nConvertedCount;
}
else if ( aSeq[i].Name == SRCH_PARA_FAMILY )
{
sal_uInt16 nTemp( 0 );
- if ( ( aSeq[i].Value >>= nTemp ) == sal_True )
+ if ( aSeq[i].Value >>= nTemp )
{
eFamily = SfxStyleFamily( nTemp );
++nConvertedCount;
@@ -479,52 +479,52 @@ bool SvxSearchItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nM
}
else if ( aSeq[i].Name == SRCH_PARA_COMMAND )
{
- if ( ( aSeq[i].Value >>= nCommand ) == sal_True )
+ if ( aSeq[i].Value >>= nCommand )
++nConvertedCount;
}
else if ( aSeq[i].Name == SRCH_PARA_CELLTYPE )
{
- if ( ( aSeq[i].Value >>= nCellType ) == sal_True )
+ if ( aSeq[i].Value >>= nCellType )
++nConvertedCount;
}
else if ( aSeq[i].Name == SRCH_PARA_APPFLAG )
{
- if ( ( aSeq[i].Value >>= nAppFlag ) == sal_True )
+ if ( aSeq[i].Value >>= nAppFlag )
++nConvertedCount;
}
else if ( aSeq[i].Name == SRCH_PARA_ROWDIR )
{
- if ( ( aSeq[i].Value >>= bRowDirection ) == sal_True )
+ if ( aSeq[i].Value >>= bRowDirection )
++nConvertedCount;
}
else if ( aSeq[i].Name == SRCH_PARA_ALLTABLES )
{
- if ( ( aSeq[i].Value >>= bAllTables ) == sal_True )
+ if ( aSeq[i].Value >>= bAllTables )
++nConvertedCount;
}
else if ( aSeq[i].Name == SRCH_PARA_SEARCHFILTERED )
{
- if ( ( aSeq[i].Value >>= bSearchFiltered ) == sal_True )
+ if ( aSeq[i].Value >>= bSearchFiltered )
++nConvertedCount;
}
else if ( aSeq[i].Name == SRCH_PARA_BACKWARD )
{
- if ( ( aSeq[i].Value >>= bBackward ) == sal_True )
+ if ( aSeq[i].Value >>= bBackward )
++nConvertedCount;
}
else if ( aSeq[i].Name == SRCH_PARA_PATTERN )
{
- if ( ( aSeq[i].Value >>= bPattern ) == sal_True )
+ if ( aSeq[i].Value >>= bPattern )
++nConvertedCount;
}
else if ( aSeq[i].Name == SRCH_PARA_CONTENT )
{
- if ( ( aSeq[i].Value >>= bContent ) == sal_True )
+ if ( aSeq[i].Value >>= bContent )
++nConvertedCount;
}
else if ( aSeq[i].Name == SRCH_PARA_ASIANOPT )
{
- if ( ( aSeq[i].Value >>= bAsianOptions ) == sal_True )
+ if ( aSeq[i].Value >>= bAsianOptions )
++nConvertedCount;
}
}