summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-27 13:02:26 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-27 13:03:42 +0100
commit36a5d940e7b95cf96e23bcd6dc70c28ce52db2b1 (patch)
tree9ec04d6d1523f915636a04813461482cb3a686be /sdext
parente36f0860f00af139a8fa94d36302f7b0c56383fe (diff)
loplugin:loopvartoosmall
Change-Id: Id2771f413798ed9ceb76e9c4dd3113633d4e481e
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/minimizer/configurationaccess.cxx3
-rw-r--r--sdext/source/minimizer/optimizerdialogcontrols.cxx10
2 files changed, 5 insertions, 8 deletions
diff --git a/sdext/source/minimizer/configurationaccess.cxx b/sdext/source/minimizer/configurationaccess.cxx
index dd39419bd086..efd92521c3ba 100644
--- a/sdext/source/minimizer/configurationaccess.cxx
+++ b/sdext/source/minimizer/configurationaccess.cxx
@@ -251,7 +251,6 @@ void ConfigurationAccess::SaveConfiguration()
do
{
int i;
- unsigned int k;
Reference<util::XChangesBatch> xRoot( OpenConfiguration( false ), UNO_QUERY_THROW );
// storing the last used settings
@@ -267,7 +266,7 @@ void ConfigurationAccess::SaveConfiguration()
for( i = 0; i < aElements.getLength(); i++ )
xNameContainer->removeByName( aElements[ i ] );
- for( k = 1; k < maSettings.size(); k++ )
+ for( std::vector<OptimizerSettings>::size_type k = 1; k < maSettings.size(); k++ )
{
OptimizerSettings& rSettings( maSettings[ k ] );
OUString aElementName( "Template" + OUString::number( k ) );
diff --git a/sdext/source/minimizer/optimizerdialogcontrols.cxx b/sdext/source/minimizer/optimizerdialogcontrols.cxx
index 45c54a90773d..647cbc359590 100644
--- a/sdext/source/minimizer/optimizerdialogcontrols.cxx
+++ b/sdext/source/minimizer/optimizerdialogcontrols.cxx
@@ -377,14 +377,13 @@ void OptimizerDialog::InitNavigationBar()
void OptimizerDialog::UpdateControlStatesPage0()
{
- sal_uInt32 i;
short nSelectedItem = -1;
Sequence< OUString > aItemList;
const std::vector< OptimizerSettings >& rList( GetOptimizerSettings() );
if ( rList.size() > 1 ) // the first session in the list is the actual one -> skipping first one
{
aItemList.realloc( rList.size() - 1 );
- for ( i = 1; i < rList.size(); i++ )
+ for ( std::vector<OptimizerSettings>::size_type i = 1; i < rList.size(); i++ )
{
aItemList[ i - 1 ] = rList[ i ].maName;
if ( nSelectedItem < 0 )
@@ -598,13 +597,12 @@ void OptimizerDialog::UpdateControlStatesPage4()
}
setControlProperty( "ComboBox0Pg4", "Enabled", Any( false ) );
- sal_uInt32 w;
Sequence< OUString > aItemList;
const std::vector< OptimizerSettings >& rList( GetOptimizerSettings() );
if ( rList.size() > 1 ) // the first session in the list is the actual one -> skipping first one
{
aItemList.realloc( rList.size() - 1 );
- for ( w = 1; w < rList.size(); w++ )
+ for ( std::vector<OptimizerSettings>::size_type w = 1; w < rList.size(); w++ )
aItemList[ w - 1 ] = rList[ w ].maName;
}
setControlProperty( "ComboBox0Pg4", "StringItemList", Any( aItemList ) );
@@ -613,7 +611,7 @@ void OptimizerDialog::UpdateControlStatesPage4()
bool bSaveSettingsEnabled = true;
if ( rList.size() > 1 ) // the first session in the list is the actual one -> skipping first one
{
- for ( w = 1; w < rList.size(); w++ )
+ for ( std::vector<OptimizerSettings>::size_type w = 1; w < rList.size(); w++ )
{
if ( rList[ w ] == rList[ 0 ] )
{
@@ -877,7 +875,7 @@ void OptimizerDialog::InitPage4()
OUString aSettingsName;
OUString aDefault( getString( STR_MY_SETTINGS ) );
sal_Int32 nSession = 1;
- sal_uInt32 i;
+ std::vector<OptimizerSettings>::size_type i;
const std::vector< OptimizerSettings >& rList( GetOptimizerSettings() );
do
{