diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-01 07:41:48 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-04 23:00:01 +0100 |
commit | 9d4ed3c555d0fd71b8b569f98814f1090bdeff17 (patch) | |
tree | 3b23a16200831c41a4cfdd67784a40f344eb0db5 /sw/source/ui | |
parent | ff0c58d360b1958d896b437035b81058a176d41f (diff) |
Use indexed getToken()
Change-Id: Ifd3885d07f7bcad46039560bbb19f48074fb4cd0
Reviewed-on: https://gerrit.libreoffice.org/67323
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/fldui/changedb.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/ui/fldui/changedb.cxx b/sw/source/ui/fldui/changedb.cxx index 3cda5bbb3a50..54854cd99699 100644 --- a/sw/source/ui/fldui/changedb.cxx +++ b/sw/source/ui/fldui/changedb.cxx @@ -125,9 +125,10 @@ void SwChangeDBDlg::FillDBPopup() SvTreeListEntry* SwChangeDBDlg::Insert(const OUString& rDBName) { - const OUString sDBName(rDBName.getToken(0, DB_DELIM)); - const OUString sTableName(rDBName.getToken(1, DB_DELIM)); - sal_IntPtr nCommandType = rDBName.getToken(2, DB_DELIM).toInt32(); + sal_Int32 nIdx{ 0 }; + const OUString sDBName(rDBName.getToken(0, DB_DELIM, nIdx)); + const OUString sTableName(rDBName.getToken(0, DB_DELIM, nIdx)); + sal_IntPtr nCommandType = rDBName.getToken(0, DB_DELIM, nIdx).toInt32(); SvTreeListEntry* pParent; SvTreeListEntry* pChild; |