summaryrefslogtreecommitdiff
path: root/unotools/source/config
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-22 13:49:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-22 13:49:39 +0000
commit5ca68d70443d2997283699464d64f365d653ff5b (patch)
tree3c377e1bf950b041c506f327cf126260c9d89765 /unotools/source/config
parenta3bb935b564e76f3fc6817fae36a023ff558b5d9 (diff)
cppcheck: prefer prefix variants
Diffstat (limited to 'unotools/source/config')
-rw-r--r--unotools/source/config/accelcfg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/unotools/source/config/accelcfg.cxx b/unotools/source/config/accelcfg.cxx
index 5c96ab7d049f..447c5e77e437 100644
--- a/unotools/source/config/accelcfg.cxx
+++ b/unotools/source/config/accelcfg.cxx
@@ -235,7 +235,7 @@ SvtAcceleratorConfiguration::~SvtAcceleratorConfiguration()
nCode = rKeyEvent.KeyFunc;
std::list< SvtAcceleratorConfigItem>::const_iterator p;
- for ( p = pImp->aList.begin(); p != pImp->aList.end(); p++ )
+ for ( p = pImp->aList.begin(); p != pImp->aList.end(); ++p )
if ( p->nCode == nCode && p->nModifier == nModifier )
return p->aCommand;
@@ -250,7 +250,7 @@ const SvtAcceleratorItemList& SvtAcceleratorConfiguration::GetItems()
void SvtAcceleratorConfiguration::SetCommand( const SvtAcceleratorConfigItem& rItem )
{
std::list< SvtAcceleratorConfigItem>::iterator p;
- for ( p = pImp->aList.begin(); p != pImp->aList.end(); p++ )
+ for ( p = pImp->aList.begin(); p != pImp->aList.end(); ++p )
if ( p->nCode == rItem.nCode && p->nModifier == rItem.nModifier )
{
p->aCommand = rItem.aCommand;
@@ -270,7 +270,7 @@ void SvtAcceleratorConfiguration::SetItems( const SvtAcceleratorItemList& rItems
else
{
std::list< SvtAcceleratorConfigItem>::const_iterator p;
- for ( p = rItems.begin(); p != rItems.end(); p++ )
+ for ( p = rItems.begin(); p != rItems.end(); ++p )
SetCommand( *p );
}
}