Kaydet (Commit) 2f7492ad authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Small simplification (and exit loop early)

Change-Id: I076307174fdd63b58a8cb9c9690f50dae746c289
üst 124f5981
......@@ -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() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment