summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-08-13 15:12:01 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-08-13 15:12:35 +0200
commit66fd1442696059cc6de07ec96af77082654a0990 (patch)
tree5368bc4dc5c39ff03dd9222bafd57442df0ff63e /svtools
parentfee11cbc619576ae69b03e62622a38bef8799502 (diff)
Some cppcheck cleaning
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/valueacc.cxx8
-rw-r--r--svtools/source/table/tablecontrol_impl.cxx8
-rw-r--r--svtools/source/uno/unoimap.cxx2
3 files changed, 9 insertions, 9 deletions
diff --git a/svtools/source/control/valueacc.cxx b/svtools/source/control/valueacc.cxx
index 137c17a65faf..ced04f665fcc 100644
--- a/svtools/source/control/valueacc.cxx
+++ b/svtools/source/control/valueacc.cxx
@@ -391,7 +391,7 @@ void SAL_CALL ValueSetAcc::addEventListener( const uno::Reference< accessibility
if( *aIter == rxListener )
bFound = sal_True;
else
- aIter++;
+ ++aIter;
}
if (!bFound)
@@ -420,7 +420,7 @@ void SAL_CALL ValueSetAcc::removeEventListener( const uno::Reference< accessibil
bFound = sal_True;
}
else
- aIter++;
+ ++aIter;
}
}
}
@@ -1066,7 +1066,7 @@ void SAL_CALL ValueItemAcc::addEventListener( const uno::Reference< accessibilit
if( *aIter == rxListener )
bFound = sal_True;
else
- aIter++;
+ ++aIter;
}
if (!bFound)
@@ -1094,7 +1094,7 @@ void SAL_CALL ValueItemAcc::removeEventListener( const uno::Reference< accessibi
bFound = sal_True;
}
else
- aIter++;
+ ++aIter;
}
}
}
diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx
index bbcdbfaddeb6..cf486bba5149 100644
--- a/svtools/source/table/tablecontrol_impl.cxx
+++ b/svtools/source/table/tablecontrol_impl.cxx
@@ -1477,7 +1477,7 @@ namespace svt { namespace table
if(m_pSelEngine->GetSelectionMode() == SINGLE_SELECTION)
{
//if other rows already selected, deselect them
- if(m_aSelectedRows.size()>0)
+ if(!m_aSelectedRows.empty())
{
for(std::vector<RowPos>::iterator it=m_aSelectedRows.begin();
it!=m_aSelectedRows.end();++it)
@@ -1508,7 +1508,7 @@ namespace svt { namespace table
case cursorUp:
if(m_pSelEngine->GetSelectionMode() == SINGLE_SELECTION)
{
- if(m_aSelectedRows.size()>0)
+ if(!m_aSelectedRows.empty())
{
for(std::vector<RowPos>::iterator it=m_aSelectedRows.begin();
it!=m_aSelectedRows.end();++it)
@@ -1625,7 +1625,7 @@ namespace svt { namespace table
else
{
//there are other selected rows
- if(m_aSelectedRows.size()>0)
+ if(!m_aSelectedRows.empty())
{
//the anchor wasn't set -> a region is not selected, that's why clear all selection
//and select the current row
@@ -1712,7 +1712,7 @@ namespace svt { namespace table
}
else
{
- if(m_aSelectedRows.size()>0)
+ if(!m_aSelectedRows.empty())
{
//the anchor wasn't set -> a region is not selected, that's why clear all selection
//and select the current row
diff --git a/svtools/source/uno/unoimap.cxx b/svtools/source/uno/unoimap.cxx
index 6c8527ffedc7..29bc879c0cf0 100644
--- a/svtools/source/uno/unoimap.cxx
+++ b/svtools/source/uno/unoimap.cxx
@@ -725,7 +725,7 @@ Type SAL_CALL SvUnoImageMap::getElementType( ) throw(RuntimeException)
sal_Bool SAL_CALL SvUnoImageMap::hasElements( ) throw(RuntimeException)
{
- return maObjectList.size() != 0;
+ return (!maObjectList.empty());
}
// XSerivceInfo