diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-14 22:44:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-15 09:27:57 +0200 |
commit | 2f7492ad67222759006ad4f7e1fdd86147278729 (patch) | |
tree | b24db59623fde9cbd762600d9eec1088a683c9a9 /sdext/source | |
parent | 124f5981d800d9159565d953f82475daf7be68df (diff) |
Small simplification (and exit loop early)
Change-Id: I076307174fdd63b58a8cb9c9690f50dae746c289
Diffstat (limited to 'sdext/source')
-rw-r--r-- | sdext/source/minimizer/fileopendialog.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/minimizer/fileopendialog.cxx b/sdext/source/minimizer/fileopendialog.cxx index 31a54223628c..e7f42d41ca35 100644 --- a/sdext/source/minimizer/fileopendialog.cxx +++ b/sdext/source/minimizer/fileopendialog.cxx @@ -132,10 +132,10 @@ FileOpenDialog::FileOpenDialog( const Reference< XComponentContext >& rxContext Sequence< OUString > aExtensions; for ( int i = 0; i < aTypeProperties.getLength(); i++ ) { - switch( TKGet( aTypeProperties[ i ].Name ) ) + if( aTypeProperties[ i ].Name == "Extensions" ) { - case TK_Extensions : aTypeProperties[ i ].Value >>= aExtensions; break; - default: break; + aTypeProperties[ i ].Value >>= aExtensions; + break; } } if ( aExtensions.getLength() ) |