diff options
-rw-r--r-- | sfx2/source/control/unoctitm.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index c2a66b443bd7..d25601a362ca 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -371,14 +371,14 @@ void SfxDispatchController_Impl::addParametersToArgs( const css::util::URL& aURL sal_Int32 nParmIndex = 0; OUString aParamType; OUString aParamName = aToken.getToken( 0, '=', nParmIndex ); - OUString aValue = (nParmIndex!=-1) ? aToken.getToken( 0, '=', nParmIndex ) : OUString(); + OUString aValue = aToken.getToken( 0, '=', nParmIndex ); if ( !aParamName.isEmpty() ) { nParmIndex = 0; aToken = aParamName; aParamName = aToken.getToken( 0, ':', nParmIndex ); - aParamType = (nParmIndex!=-1) ? aToken.getToken( 0, ':', nParmIndex ) : OUString(); + aParamType = aToken.getToken( 0, ':', nParmIndex ); } sal_Int32 nLen = rArgs.getLength(); |