sw/source/ui/fldui/changedb.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit 9d4ed3c555d0fd71b8b569f98814f1090bdeff17 Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Fri Feb 1 07:41:48 2019 +0100 Commit: Matteo Casalin <matteo.casa...@yahoo.com> CommitDate: Mon Feb 4 23:00:01 2019 +0100 Use indexed getToken() Change-Id: Ifd3885d07f7bcad46039560bbb19f48074fb4cd0 Reviewed-on: https://gerrit.libreoffice.org/67323 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casa...@yahoo.com> 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits