diff options
Diffstat (limited to 'libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx')
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx b/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx index bb0e7edd390d..973e2095275a 100644 --- a/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.cxx @@ -377,11 +377,11 @@ void changeZoom( GtkWidget* pButton, gpointer /* pItem */ ) if ( strcmp(sName, "zoom-in-symbolic") == 0) { - for ( size_t i = 0; i < SAL_N_ELEMENTS( fZooms ); i++ ) + for ( const auto& i : fZooms ) { - if ( fCurrentZoom < fZooms[i] ) + if ( fCurrentZoom < i ) { - fZoom = fZooms[i]; + fZoom = i; break; } } @@ -392,11 +392,11 @@ void changeZoom( GtkWidget* pButton, gpointer /* pItem */ ) } else if ( strcmp(sName, "zoom-out-symbolic") == 0) { - for ( size_t i = 0; i < SAL_N_ELEMENTS( fZooms ); i++ ) + for ( const auto& i : fZooms ) { - if ( fCurrentZoom > fZooms[i] ) + if ( fCurrentZoom > i ) { - fZoom = fZooms[i]; + fZoom = i; } } } |