sfx2/source/control/unoctitm.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 12321a715205d2fe70bd87ddc0efa5ef777884fb Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Sun Feb 10 16:01:47 2019 +0100 Commit: Matteo Casalin <matteo.casa...@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.casa...@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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits