[Libreoffice-commits] core.git: sfx2/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Feb 14 06:43:49 UTC 2019


 sfx2/source/control/unoctitm.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 12321a715205d2fe70bd87ddc0efa5ef777884fb
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sun Feb 10 16:01:47 2019 +0100
Commit:     Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Thu Feb 14 07:43:23 2019 +0100

    getToken() already returns an empty string if index is negative
    
    Change-Id: Ibb9e866cc0a84973ee950630273f229362cb1bb6
    Reviewed-on: https://gerrit.libreoffice.org/67635
    Tested-by: Jenkins
    Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>

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();


More information about the Libreoffice-commits mailing list