summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filter/source/flash/swfwriter.cxx2
-rw-r--r--package/source/xstor/owriteablestream.cxx4
-rw-r--r--stoc/source/tdmanager/tdmgr.cxx2
-rw-r--r--svl/source/items/stylepool.cxx2
-rw-r--r--sw/source/filter/html/htmltab.cxx2
-rw-r--r--unotools/source/config/xmlaccelcfg.cxx4
6 files changed, 8 insertions, 8 deletions
diff --git a/filter/source/flash/swfwriter.cxx b/filter/source/flash/swfwriter.cxx
index 980146cf6594..2ba73bbca16c 100644
--- a/filter/source/flash/swfwriter.cxx
+++ b/filter/source/flash/swfwriter.cxx
@@ -216,7 +216,7 @@ void Writer::endSprite()
mpSprite->write( *mpMovieStream );
delete mpSprite;
- if (mvSpriteStack.size() > 0)
+ if (!mvSpriteStack.empty())
{
mpSprite = mvSpriteStack.top();
mvSpriteStack.pop();
diff --git a/package/source/xstor/owriteablestream.cxx b/package/source/xstor/owriteablestream.cxx
index d4af5eefad66..56b308b60478 100644
--- a/package/source/xstor/owriteablestream.cxx
+++ b/package/source/xstor/owriteablestream.cxx
@@ -73,7 +73,7 @@ bool PackageEncryptionDatasEqual( const ::comphelper::SequenceAsHashMap& aHash1,
bool bResult = ( aHash1.size() && aHash1.size() == aHash2.size() );
for ( ::comphelper::SequenceAsHashMap::const_iterator aIter = aHash1.begin();
bResult && aIter != aHash1.end();
- aIter++ )
+ ++aIter )
{
uno::Sequence< sal_Int8 > aKey1;
bResult = ( ( aIter->second >>= aKey1 ) && aKey1.getLength() );
@@ -540,7 +540,7 @@ void OWriteStream_Impl::DisposeWrappers()
if ( !m_aInputStreamsList.empty() )
{
for ( InputStreamsList_Impl::iterator pStreamIter = m_aInputStreamsList.begin();
- pStreamIter != m_aInputStreamsList.end(); pStreamIter++ )
+ pStreamIter != m_aInputStreamsList.end(); ++pStreamIter )
{
if ( (*pStreamIter) )
{
diff --git a/stoc/source/tdmanager/tdmgr.cxx b/stoc/source/tdmanager/tdmgr.cxx
index 6c6e89700f4d..04e78969d05c 100644
--- a/stoc/source/tdmanager/tdmgr.cxx
+++ b/stoc/source/tdmanager/tdmgr.cxx
@@ -374,7 +374,7 @@ sal_Bool ManagerImpl::hasElements()
throw(::com::sun::star::uno::RuntimeException)
{
MutexGuard aGuard( _aComponentMutex );
- return (_aProviders.size() > 0);
+ return (!_aProviders.empty());
}
// XEnumerationAccess
diff --git a/svl/source/items/stylepool.cxx b/svl/source/items/stylepool.cxx
index 1873ffda3a3b..26910a332645 100644
--- a/svl/source/items/stylepool.cxx
+++ b/svl/source/items/stylepool.cxx
@@ -117,7 +117,7 @@ namespace {
{
bool bHasItemSet = false;
- if ( maItemSet.size() > 0 )
+ if ( !maItemSet.empty())
{
if ( bCheckUsage )
{
diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx
index 1552660e1422..17b54983c842 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -2390,7 +2390,7 @@ void HTMLTable::CloseTable()
HTMLTableRow *pPrevRow = (*pRows)[nCurRow-1];
HTMLTableCell *pCell;
for( i=0; i<nCols; i++ )
- if( ( pCell=pPrevRow->GetCell(i), pCell->GetRowSpan() > 1 ) )
+ if( ( (pCell=(pPrevRow->GetCell(i))), (pCell->GetRowSpan()) > 1 ) )
{
FixRowSpan( nCurRow-1, i, pCell->GetContents() );
ProtectRowSpan( nCurRow, i, (*pRows)[nCurRow]->GetCell(i)->GetRowSpan() );
diff --git a/unotools/source/config/xmlaccelcfg.cxx b/unotools/source/config/xmlaccelcfg.cxx
index fbf33a889ca5..dfb0e29b239f 100644
--- a/unotools/source/config/xmlaccelcfg.cxx
+++ b/unotools/source/config/xmlaccelcfg.cxx
@@ -147,7 +147,7 @@ OUString AttributeListImpl::getTypeByName( const OUString& sName ) throw (Runtim
{
::std::vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();
- for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
+ for( ; ii != m_pImpl->vecAttribute.end() ; ++ii ) {
if( (*ii).sName == sName ) {
return (*ii).sType;
}
@@ -159,7 +159,7 @@ OUString AttributeListImpl::getValueByName(const OUString& sName) throw (Runtime
{
::std::vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();
- for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
+ for( ; ii != m_pImpl->vecAttribute.end() ; ++ii ) {
if( (*ii).sName == sName ) {
return (*ii).sValue;
}