diff options
Diffstat (limited to 'sw/source/ui/fldui/fldpage.cxx')
-rw-r--r-- | sw/source/ui/fldui/fldpage.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/ui/fldui/fldpage.cxx b/sw/source/ui/fldui/fldpage.cxx index b010a1afd767..71ff3d33246e 100644 --- a/sw/source/ui/fldui/fldpage.cxx +++ b/sw/source/ui/fldui/fldpage.cxx @@ -36,6 +36,7 @@ #include <docufld.hxx> #include <cmdid.h> #include <sfx2/bindings.hxx> +#include <o3tl/string_view.hxx> using namespace ::com::sun::star; @@ -146,7 +147,7 @@ void SwFieldPage::InsertField(SwFieldTypesEnum nTypeId, sal_uInt16 nSubType, con aReq.AppendItem(SfxStringItem (FN_PARAM_1,rPar1.getToken(0, DB_DELIM, nIdx))); aReq.AppendItem(SfxInt32Item - (FN_PARAM_3,rPar1.getToken(0, DB_DELIM, nIdx).toInt32())); + (FN_PARAM_3, o3tl::toInt32(o3tl::getToken(rPar1, 0, DB_DELIM, nIdx)))); aReq.AppendItem(SfxStringItem (FN_PARAM_2,rPar1.getToken(0, DB_DELIM, nIdx))); } @@ -188,7 +189,7 @@ void SwFieldPage::InsertField(SwFieldTypesEnum nTypeId, sal_uInt16 nSubType, con aData.sDataSource = rPar1.getToken(0, DB_DELIM, nPos); aData.sCommand = rPar1.getToken(0, DB_DELIM, nPos); - aData.nCommandType = rPar1.getToken(0, DB_DELIM, nPos).toInt32(); + aData.nCommandType = o3tl::toInt32(o3tl::getToken(rPar1, 0, DB_DELIM, nPos)); sPar1 = rPar1.copy(nPos); static_cast<SwDBNameInfField*>(pTmpField.get())->SetDBData(aData); @@ -201,7 +202,7 @@ void SwFieldPage::InsertField(SwFieldTypesEnum nTypeId, sal_uInt16 nSubType, con sal_Int32 nIdx{ 0 }; aData.sDataSource = rPar1.getToken(0, DB_DELIM, nIdx); aData.sCommand = rPar1.getToken(0, DB_DELIM, nIdx); - aData.nCommandType = rPar1.getToken(0, DB_DELIM, nIdx).toInt32(); + aData.nCommandType = o3tl::toInt32(o3tl::getToken(rPar1, 0, DB_DELIM, nIdx)); OUString sColumn = rPar1.getToken(0, DB_DELIM, nIdx); auto pOldType = static_cast<SwDBFieldType*>(pTmpField->GetTyp()); |