diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-11-09 19:04:10 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-11-10 22:04:06 +0100 |
commit | 030c27a0f35ad1515d22c386b2a343c4de1760df (patch) | |
tree | 70d73a0704e72b488ce3eef0ab9f2117b170bcc3 /sw | |
parent | 27f5860966f215da4d98c9af02e7f59d07809786 (diff) |
Avoid temporary (that introduces downcast)
Change-Id: I810172d045860f49819b9e25de8a2d5fe5f80dd8
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/app/appenv.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/app/appenv.cxx b/sw/source/uibase/app/appenv.cxx index fe03e3793423..8815f6a97ee2 100644 --- a/sw/source/uibase/app/appenv.cxx +++ b/sw/source/uibase/app/appenv.cxx @@ -109,8 +109,7 @@ OUString InsertLabEnvText( SwWrtShell& rSh, SwFieldMgr& rFieldMgr, const OUStrin // Database fields must contain at least 3 points! OUString sDBName( sTmpText.copy( 1, sTmpText.getLength() - 2)); - sal_uInt16 nCnt = comphelper::string::getTokenCount(sDBName, '.'); - if (nCnt >= 3) + if (comphelper::string::getTokenCount(sDBName, '.') >= 3) { sDBName = ::ReplacePoint(sDBName, true); SwInsertField_Data aData(TYP_DBFLD, 0, sDBName, aEmptyOUStr, 0, &rSh ); |