[Libreoffice-commits] core.git: dbaccess/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Dec 28 16:22:42 UTC 2018
dbaccess/source/ui/dlg/TextConnectionHelper.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4a0af123dc8b8b144e2dc43037fbef0659958574
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Fri Dec 28 12:08:44 2018 +0100
Commit: Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Fri Dec 28 17:22:18 2018 +0100
Simplify: getToken(0,'.')=="*" to startsWith("*.")
Change-Id: I9f1fed85673e36bc5e552cb0db176b137033cfca
Reviewed-on: https://gerrit.libreoffice.org/65683
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>
diff --git a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx
index 6abb1cddb698..abe96acbc327 100644
--- a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx
+++ b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx
@@ -366,7 +366,7 @@ namespace dbaui
else
{
sExtension = m_xOwnExtension->get_text();
- if ( sExtension.getToken(0,'.') == "*" )
+ if ( sExtension.startsWith("*.") )
sExtension = sExtension.copy(2);
}
return sExtension;
More information about the Libreoffice-commits
mailing list