diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-28 12:08:44 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-28 17:22:18 +0100 |
commit | 4a0af123dc8b8b144e2dc43037fbef0659958574 (patch) | |
tree | 8f719d1526de9d623e39668690a2fa3ac9850dd3 /dbaccess | |
parent | 3f0303521e553051ceb871bb5bce957177aea0f4 (diff) |
Simplify: getToken(0,'.')=="*" to startsWith("*.")
Change-Id: I9f1fed85673e36bc5e552cb0db176b137033cfca
Reviewed-on: https://gerrit.libreoffice.org/65683
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/dlg/TextConnectionHelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |