diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:02:07 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:02:07 +0200 |
commit | 036551092cc213d0be183e2505201ef7d19da7ca (patch) | |
tree | 76adfe469e7232d5d0b7b766e24a52927c3ff5e1 /sd | |
parent | c71c419c63bb0a238cbc25a5ae8bcf71a4af31d1 (diff) |
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I4f225ecbd40c240eca74756590afe678557cf023
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/pptx-epptooxml.cxx | 64 | ||||
-rw-r--r-- | sd/source/filter/ppt/pptinanimations.cxx | 14 |
2 files changed, 39 insertions, 39 deletions
diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx index e30e7fade81b..20d43b36b399 100644 --- a/sd/source/filter/eppt/pptx-epptooxml.cxx +++ b/sd/source/filter/eppt/pptx-epptooxml.cxx @@ -1313,9 +1313,9 @@ bool PowerPointExport::WriteComments( sal_uInt32 nPageNum ) if ( xAnnotationEnumeration->hasMoreElements() ) { FSHelperPtr pFS = openFragmentStreamWithSerializer( OUStringBuffer() - .appendAscii( "ppt/comments/comment" ) + .append( "ppt/comments/comment" ) .append( (sal_Int32) nPageNum + 1 ) - .appendAscii( ".xml" ) + .append( ".xml" ) .makeStringAndClear(), "application/vnd.openxmlformats-officedocument.presentationml.comments+xml" ); @@ -1376,9 +1376,9 @@ void PowerPointExport::ImplWriteSlide( sal_uInt32 nPageNum, sal_uInt32 nMasterNu OUString sRelId = addRelation( mPresentationFS->getOutputStream(), "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide", OUStringBuffer() - .appendAscii( "slides/slide" ) + .append( "slides/slide" ) .append( (sal_Int32) nPageNum + 1 ) - .appendAscii( ".xml" ) + .append( ".xml" ) .makeStringAndClear() ); mPresentationFS->singleElementNS( XML_p, XML_sldId, @@ -1390,9 +1390,9 @@ void PowerPointExport::ImplWriteSlide( sal_uInt32 nPageNum, sal_uInt32 nMasterNu mPresentationFS->endElementNS( XML_p, XML_sldIdLst ); FSHelperPtr pFS = openFragmentStreamWithSerializer( OUStringBuffer() - .appendAscii( "ppt/slides/slide" ) + .append( "ppt/slides/slide" ) .append( (sal_Int32) nPageNum + 1 ) - .appendAscii( ".xml" ) + .append( ".xml" ) .makeStringAndClear(), "application/vnd.openxmlformats-officedocument.presentationml.slide+xml" ); @@ -1432,9 +1432,9 @@ void PowerPointExport::ImplWriteSlide( sal_uInt32 nPageNum, sal_uInt32 nMasterNu addRelation( pFS->getOutputStream(), "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout", OUStringBuffer() - .appendAscii( "../slideLayouts/slideLayout" ) + .append( "../slideLayouts/slideLayout" ) .append( GetLayoutFileId( GetPPTXLayoutId( GetLayoutOffset( mXPagePropSet ) ), nMasterNum ) ) - .appendAscii( ".xml" ) + .append( ".xml" ) .makeStringAndClear() ); if ( WriteComments( nPageNum ) ) @@ -1442,9 +1442,9 @@ void PowerPointExport::ImplWriteSlide( sal_uInt32 nPageNum, sal_uInt32 nMasterNu addRelation( pFS->getOutputStream(), "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments", OUStringBuffer() - .appendAscii( "../comments/comment" ) + .append( "../comments/comment" ) .append( (sal_Int32) nPageNum + 1 ) - .appendAscii( ".xml" ) + .append( ".xml" ) .makeStringAndClear() ); DBG(printf("----------------\n")); @@ -1458,9 +1458,9 @@ void PowerPointExport::ImplWriteNotes( sal_uInt32 nPageNum ) DBG(printf("write Notes %" SAL_PRIuUINT32 "\n----------------\n", nPageNum)); FSHelperPtr pFS = openFragmentStreamWithSerializer( OUStringBuffer() - .appendAscii( "ppt/notesSlides/notesSlide" ) + .append( "ppt/notesSlides/notesSlide" ) .append( (sal_Int32) nPageNum + 1 ) - .appendAscii( ".xml" ) + .append( ".xml" ) .makeStringAndClear(), "application/vnd.openxmlformats-officedocument.presentationml.notesSlide+xml" ); @@ -1478,9 +1478,9 @@ void PowerPointExport::ImplWriteNotes( sal_uInt32 nPageNum ) addRelation( pFS->getOutputStream(), "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide", OUStringBuffer() - .appendAscii( "../slides/slide" ) + .append( "../slides/slide" ) .append( (sal_Int32) nPageNum + 1 ) - .appendAscii( ".xml" ) + .append( ".xml" ) .makeStringAndClear() ); // add slide implicit relation to notes @@ -1488,9 +1488,9 @@ void PowerPointExport::ImplWriteNotes( sal_uInt32 nPageNum ) addRelation( mpSlidesFSArray[ nPageNum ]->getOutputStream(), "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide", OUStringBuffer() - .appendAscii( "../notesSlides/notesSlide" ) + .append( "../notesSlides/notesSlide" ) .append( (sal_Int32) nPageNum + 1 ) - .appendAscii( ".xml" ) + .append( ".xml" ) .makeStringAndClear() ); // add implicit relation to notes master @@ -1507,9 +1507,9 @@ void PowerPointExport::AddLayoutIdAndRelation( FSHelperPtr pFS, sal_Int32 nLayou OUString sRelId = addRelation( pFS->getOutputStream(), "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout", OUStringBuffer() - .appendAscii( "../slideLayouts/slideLayout" ) + .append( "../slideLayouts/slideLayout" ) .append( nLayoutFileId ) - .appendAscii( ".xml" ) + .append( ".xml" ) .makeStringAndClear() ); pFS->singleElementNS( XML_p, XML_sldLayoutId, @@ -1538,9 +1538,9 @@ void PowerPointExport::ImplWriteSlideMaster( sal_uInt32 nPageNum, Reference< XPr OUString sRelId = addRelation( mPresentationFS->getOutputStream(), "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster", OUStringBuffer() - .appendAscii( "slideMasters/slideMaster" ) + .append( "slideMasters/slideMaster" ) .append( (sal_Int32) nPageNum + 1 ) - .appendAscii( ".xml" ) + .append( ".xml" ) .makeStringAndClear() ); mPresentationFS->singleElementNS( XML_p, XML_sldMasterId, @@ -1553,9 +1553,9 @@ void PowerPointExport::ImplWriteSlideMaster( sal_uInt32 nPageNum, Reference< XPr FSHelperPtr pFS = openFragmentStreamWithSerializer( OUStringBuffer() - .appendAscii( "ppt/slideMasters/slideMaster" ) + .append( "ppt/slideMasters/slideMaster" ) .append( (sal_Int32) nPageNum + 1 ) - .appendAscii( ".xml" ) + .append( ".xml" ) .makeStringAndClear(), "application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml" ); @@ -1566,9 +1566,9 @@ void PowerPointExport::ImplWriteSlideMaster( sal_uInt32 nPageNum, Reference< XPr addRelation( pFS->getOutputStream(), "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme", OUStringBuffer() - .appendAscii( "../theme/theme" ) + .append( "../theme/theme" ) .append( (sal_Int32) nPageNum + 1 ) - .appendAscii( ".xml" ) + .append( ".xml" ) .makeStringAndClear() ); pFS->startElementNS( XML_p, XML_sldMaster, PNMSS, FSEND ); @@ -1665,9 +1665,9 @@ void PowerPointExport::ImplWritePPTXLayout( sal_Int32 nOffset, sal_uInt32 nMaste FSHelperPtr pFS = openFragmentStreamWithSerializer( OUStringBuffer() - .appendAscii( "ppt/slideLayouts/slideLayout" ) + .append( "ppt/slideLayouts/slideLayout" ) .append( (sal_Int32) mnLayoutFileIdMax ) - .appendAscii( ".xml" ) + .append( ".xml" ) .makeStringAndClear(), "application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml" ); @@ -1675,9 +1675,9 @@ void PowerPointExport::ImplWritePPTXLayout( sal_Int32 nOffset, sal_uInt32 nMaste addRelation( pFS->getOutputStream(), "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster", OUStringBuffer() - .appendAscii( "../slideMasters/slideMaster" ) + .append( "../slideMasters/slideMaster" ) .append( (sal_Int32) nMasterNum + 1 ) - .appendAscii( ".xml" ) + .append( ".xml" ) .makeStringAndClear() ); pFS->startElementNS( XML_p, XML_sldLayout, @@ -2042,9 +2042,9 @@ ShapeExport& PowerPointShapeExport::WritePlaceholderShape( Reference< XShape > x void PowerPointExport::WriteTheme( sal_Int32 nThemeNum ) { FSHelperPtr pFS = openFragmentStreamWithSerializer( OUStringBuffer() - .appendAscii( "ppt/theme/theme" ) + .append( "ppt/theme/theme" ) .append( (sal_Int32) nThemeNum + 1 ) - .appendAscii( ".xml" ) + .append( ".xml" ) .makeStringAndClear(), "application/vnd.openxmlformats-officedocument.theme+xml" ); @@ -2101,9 +2101,9 @@ bool PowerPointExport::WriteNotesMaster() addRelation( pFS->getOutputStream(), "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme", OUStringBuffer() - .appendAscii( "../theme/theme" ) + .append( "../theme/theme" ) .append( (sal_Int32) mnMasterPages + 1 ) - .appendAscii( ".xml" ) + .append( ".xml" ) .makeStringAndClear() ); pFS->startElementNS( XML_p, XML_notesMaster, PNMSS, FSEND ); diff --git a/sd/source/filter/ppt/pptinanimations.cxx b/sd/source/filter/ppt/pptinanimations.cxx index d63bc65c254e..3aa3461b4831 100644 --- a/sd/source/filter/ppt/pptinanimations.cxx +++ b/sd/source/filter/ppt/pptinanimations.cxx @@ -1206,15 +1206,15 @@ void AnimationImporter::fillNode( Reference< XAnimationNode >& xNode, const Anim else { OUStringBuffer sBuffer; - sBuffer.appendAscii( "ppt_" ); + sBuffer.append( "ppt_" ); switch( nEffectPresetClass ) { - case EffectPresetClass::ENTRANCE: sBuffer.appendAscii( "entrance_" ); break; - case EffectPresetClass::EXIT: sBuffer.appendAscii( "exit_" ); break; - case EffectPresetClass::EMPHASIS: sBuffer.appendAscii( "emphasis_" ); break; - case EffectPresetClass::MOTIONPATH: sBuffer.appendAscii( "motionpath_" ); break; - case EffectPresetClass::OLEACTION: sBuffer.appendAscii( "oleaction_" ); break; - case EffectPresetClass::MEDIACALL: sBuffer.appendAscii( "mediacall_" ); break; + case EffectPresetClass::ENTRANCE: sBuffer.append( "entrance_" ); break; + case EffectPresetClass::EXIT: sBuffer.append( "exit_" ); break; + case EffectPresetClass::EMPHASIS: sBuffer.append( "emphasis_" ); break; + case EffectPresetClass::MOTIONPATH: sBuffer.append( "motionpath_" ); break; + case EffectPresetClass::OLEACTION: sBuffer.append( "oleaction_" ); break; + case EffectPresetClass::MEDIACALL: sBuffer.append( "mediacall_" ); break; } sBuffer.append( nPresetId ); |