[Libreoffice-commits] core.git: basic/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Dec 28 15:46:32 UTC 2018
basic/source/basmgr/basmgr.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 854b6a5f00d86b55ca8c0cb7f83940e84e65d27c
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sun Nov 25 01:07:18 2018 +0100
Commit: Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Fri Dec 28 16:46:11 2018 +0100
Remove unneeded cast, constify OUString
Change-Id: I4a92779f86104cdad420069620eec50cea85b29c
Reviewed-on: https://gerrit.libreoffice.org/65662
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index c079d4efa3db..0cd4123cf5b6 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -1462,8 +1462,8 @@ namespace
SbMethod* lcl_queryMacro( BasicManager* i_manager, OUString const& i_fullyQualifiedName )
{
sal_Int32 nLast = 0;
- OUString sLibName = i_fullyQualifiedName.getToken( sal_Int32(0), '.', nLast );
- OUString sModule = i_fullyQualifiedName.getToken( sal_Int32(0), '.', nLast );
+ const OUString sLibName {i_fullyQualifiedName.getToken( 0, '.', nLast )};
+ const OUString sModule {i_fullyQualifiedName.getToken( 0, '.', nLast )};
OUString sMacro;
if(nLast >= 0)
{
More information about the Libreoffice-commits
mailing list