summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk/fpicker/resourceprovider.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/gtk/fpicker/resourceprovider.cxx')
-rw-r--r--vcl/unx/gtk/fpicker/resourceprovider.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/gtk/fpicker/resourceprovider.cxx b/vcl/unx/gtk/fpicker/resourceprovider.cxx
index 9727a9cf9654..c6b09452df91 100644
--- a/vcl/unx/gtk/fpicker/resourceprovider.cxx
+++ b/vcl/unx/gtk/fpicker/resourceprovider.cxx
@@ -60,10 +60,10 @@ static const struct
static sal_Int16 CtrlIdToResId( sal_Int32 aControlId )
{
- for ( size_t i = 0; i < SAL_N_ELEMENTS( CtrlIdToResIdTable ); i++ )
+ for (auto & i : CtrlIdToResIdTable)
{
- if ( CtrlIdToResIdTable[i].ctrlId == aControlId )
- return CtrlIdToResIdTable[i].resId;
+ if ( i.ctrlId == aControlId )
+ return i.resId;
}
return -1;
}