diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-03 18:58:33 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-08 19:31:01 +0100 |
commit | 15b0bc23e87aa41dc40beeaaed7e87d727af00f2 (patch) | |
tree | 7debeecda695ff0298fb9551d0e1e31a5f06ecdb /sw | |
parent | e5e1eca721ec35d51c41985e3020909ab956bdc5 (diff) |
Use indexed getToken()
Change-Id: I7ba78cc8ecf7d2ecface0e69dcacc9bae869c7e6
Reviewed-on: https://gerrit.libreoffice.org/67335
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/fields/docufld.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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)) |