diff options
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/XMLIndexMarkExport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtfldi.cxx | 12 | ||||
-rw-r--r-- | xmloff/source/text/txtvfldi.cxx | 10 |
3 files changed, 12 insertions, 12 deletions
diff --git a/xmloff/source/text/XMLIndexMarkExport.cxx b/xmloff/source/text/XMLIndexMarkExport.cxx index 9004c7423fb6..d7f2a2d5dd01 100644 --- a/xmloff/source/text/XMLIndexMarkExport.cxx +++ b/xmloff/source/text/XMLIndexMarkExport.cxx @@ -248,7 +248,7 @@ void XMLIndexMarkExport::GetID( // HACK: use address of object to form identifier sal_Int64 nId = sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_uIntPtr>(rPropSet.get())); - sBuf.appendAscii(sPrefix, sizeof(sPrefix)-1); + sBuf.append(sPrefix); sBuf.append(nId); } diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx index d64e177f0b22..98a086c87db3 100644 --- a/xmloff/source/text/txtfldi.cxx +++ b/xmloff/source/text/txtfldi.cxx @@ -3098,8 +3098,8 @@ void XMLDdeFieldDeclImportContext::StartElement( { // make service name OUStringBuffer sBuf; - sBuf.appendAscii(sAPI_fieldmaster_prefix); - sBuf.appendAscii(sAPI_dde); + sBuf.append(sAPI_fieldmaster_prefix); + sBuf.append(sAPI_dde); // create DDE TextFieldMaster Reference<XMultiServiceFactory> xFactory(GetImport().GetModel(), @@ -3192,8 +3192,8 @@ void XMLDdeFieldImportContext::EndElement() { // find master OUStringBuffer sBuf; - sBuf.appendAscii(sAPI_fieldmaster_prefix); - sBuf.appendAscii(sAPI_dde); + sBuf.append(sAPI_fieldmaster_prefix); + sBuf.append(sAPI_dde); sBuf.append('.'); sBuf.append(sName); OUString sMasterName = sBuf.makeStringAndClear(); @@ -3212,8 +3212,8 @@ void XMLDdeFieldImportContext::EndElement() xMaster->setPropertyValue( sPropertyContent, uno::makeAny( GetContent())); // master exists: create text field and attach Reference<XPropertySet> xField; - sBuf.appendAscii(sAPI_textfield_prefix); - sBuf.appendAscii(sAPI_dde); + sBuf.append(sAPI_textfield_prefix); + sBuf.append(sAPI_dde); if (CreateField(xField, sBuf.makeStringAndClear())) { Reference<XDependentTextField> xDepTextField(xField,UNO_QUERY); diff --git a/xmloff/source/text/txtvfldi.cxx b/xmloff/source/text/txtvfldi.cxx index a9410639f314..691712635c87 100644 --- a/xmloff/source/text/txtvfldi.cxx +++ b/xmloff/source/text/txtvfldi.cxx @@ -957,14 +957,14 @@ bool XMLVariableDeclImportContext::FindFieldMaster( xTextFieldsSupp->getTextFieldMasters(), UNO_QUERY); OUStringBuffer sBuffer; - sBuffer.appendAscii(sAPI_fieldmaster_prefix); - sBuffer.appendAscii(sAPI_set_expression); + sBuffer.append(sAPI_fieldmaster_prefix); + sBuffer.append(sAPI_set_expression); sBuffer.append("."); sBuffer.append(sName); OUString sVarServiceName = sBuffer.makeStringAndClear(); - sBuffer.appendAscii(sAPI_fieldmaster_prefix); - sBuffer.appendAscii(sAPI_user); + sBuffer.append(sAPI_fieldmaster_prefix); + sBuffer.append(sAPI_user); sBuffer.append("."); sBuffer.append(sName); OUString sUserServiceName = sBuffer.makeStringAndClear(); @@ -1040,7 +1040,7 @@ bool XMLVariableDeclImportContext::FindFieldMaster( if( xFactory.is() ) { OUStringBuffer sService; - sService.appendAscii(sAPI_fieldmaster_prefix); + sService.append(sAPI_fieldmaster_prefix); sService.appendAscii((eVarType==VarTypeUserField) ? sAPI_user : sAPI_set_expression); Reference<XInterface> xIfc = |