[Libreoffice-commits] core.git: avmedia/source
Stephan Bergmann
sbergman at redhat.com
Sun Feb 26 20:56:16 UTC 2017
avmedia/source/viewer/mediawindow.cxx | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
New commits:
commit 1b59be1c9076f3d491a8893adc8de37323791db0
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Sun Feb 26 21:55:43 2017 +0100
loplugin:loopvartoosmall
Change-Id: I62c14c2e9d10345b29d133003238df9ce2021f3d
diff --git a/avmedia/source/viewer/mediawindow.cxx b/avmedia/source/viewer/mediawindow.cxx
index dd47d52..b204542 100644
--- a/avmedia/source/viewer/mediawindow.cxx
+++ b/avmedia/source/viewer/mediawindow.cxx
@@ -224,8 +224,7 @@ bool MediaWindow::executeMediaURLDialog(vcl::Window*,
getMediaFilters( aFilters );
- unsigned int i;
- for( i = 0; i < aFilters.size(); ++i )
+ for( FilterNameVector::size_type i = 0; i < aFilters.size(); ++i )
{
for( sal_Int32 nIndex = 0; nIndex >= 0; )
{
@@ -239,7 +238,7 @@ bool MediaWindow::executeMediaURLDialog(vcl::Window*,
// add filter for all media types
aDlg.AddFilter( AVMEDIA_RESSTR( AVMEDIA_STR_ALL_MEDIAFILES ), aAllTypes );
- for( i = 0; i < aFilters.size(); ++i )
+ for( FilterNameVector::size_type i = 0; i < aFilters.size(); ++i )
{
OUString aTypes;
@@ -344,8 +343,7 @@ bool MediaWindow::isMediaURL( const OUString& rURL, const OUString& rReferer, bo
getMediaFilters( aFilters );
- unsigned int i;
- for( i = 0; ( i < aFilters.size() ) && !bRet; ++i )
+ for( FilterNameVector::size_type i = 0; ( i < aFilters.size() ) && !bRet; ++i )
{
for( sal_Int32 nIndex = 0; nIndex >= 0 && !bRet; )
{
More information about the Libreoffice-commits
mailing list