[Libreoffice-commits] .: chart2/source
Caolán McNamara
caolan at kemper.freedesktop.org
Sun Dec 19 08:44:28 PST 2010
chart2/source/controller/dialogs/ChartTypeDialogController.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit d1dd01814d169a571ac382cf446e299b8a4bdd26
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Dec 19 16:24:55 2010 +0000
cppcheck: prefer prefix variant
diff --git a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx
index 0c7a1f1..e384163 100644
--- a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx
+++ b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx
@@ -218,7 +218,7 @@ void ChartTypeDialogController::adjustParameterToMainType( ChartTypeParameter& r
const tTemplateServiceChartTypeParameterMap::const_iterator aEnd = rMap.end();
for( sal_Int32 nMatchPrecision=0; nMatchPrecision<7 && !bFoundSomeMatch; nMatchPrecision++ )
{
- for( aIter = rMap.begin(); aIter != aEnd; aIter++ )
+ for( aIter = rMap.begin(); aIter != aEnd; ++aIter )
{
if( rParameter.mapsToSimilarService( (*aIter).second, nMatchPrecision ) )
{
@@ -263,7 +263,7 @@ rtl::OUString ChartTypeDialogController::getServiceNameForParameter( const Chart
const tTemplateServiceChartTypeParameterMap& rMap = getTemplateMap();
tTemplateServiceChartTypeParameterMap::const_iterator aIter = rMap.begin();
const tTemplateServiceChartTypeParameterMap::const_iterator aEnd = rMap.end();
- for( ; aIter != aEnd; aIter++ )
+ for( ; aIter != aEnd; ++aIter )
{
if( aParameter.mapsToSameService( (*aIter).second ) )
return (*aIter).first;
@@ -272,7 +272,7 @@ rtl::OUString ChartTypeDialogController::getServiceNameForParameter( const Chart
OSL_ENSURE( false, "ChartType not implemented yet - use fallback to similar type" );
for( sal_Int32 nMatchPrecision=1; nMatchPrecision<8; nMatchPrecision++ )
{
- for( aIter = rMap.begin(); aIter != aEnd; aIter++ )
+ for( aIter = rMap.begin(); aIter != aEnd; ++aIter )
{
if( aParameter.mapsToSimilarService( (*aIter).second, nMatchPrecision ) )
return (*aIter).first;
More information about the Libreoffice-commits
mailing list