[Libreoffice-commits] core.git: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Feb 8 18:31:32 UTC 2019
sw/source/core/fields/docufld.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 15b0bc23e87aa41dc40beeaaed7e87d727af00f2
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sun Feb 3 18:58:33 2019 +0100
Commit: Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Fri Feb 8 19:31:01 2019 +0100
Use indexed getToken()
Change-Id: I7ba78cc8ecf7d2ecface0e69dcacc9bae869c7e6
Reviewed-on: https://gerrit.libreoffice.org/67335
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>
diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx
index 18604635d696..1578d471d322 100644
--- a/sw/source/core/fields/docufld.cxx
+++ b/sw/source/core/fields/docufld.cxx
@@ -1365,9 +1365,10 @@ void SwHiddenTextField::Evaluate(SwDoc* pDoc)
#if HAVE_FEATURE_DBCONNECTIVITY
if( pMgr)
{
+ sal_Int32 nIdx{ 0 };
OUString sDBName( GetDBName( sTmpName, pDoc ));
- OUString sDataSource(sDBName.getToken(0, DB_DELIM));
- OUString sDataTableOrQuery(sDBName.getToken(1, DB_DELIM));
+ OUString sDataSource(sDBName.getToken(0, DB_DELIM, nIdx));
+ OUString sDataTableOrQuery(sDBName.getToken(0, DB_DELIM, nIdx));
if( pMgr->IsInMerge() && !sDBName.isEmpty() &&
pMgr->IsDataSourceOpen( sDataSource,
sDataTableOrQuery, false))
More information about the Libreoffice-commits
mailing list