diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2020-07-06 00:15:20 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-07-06 00:25:25 +0200 |
commit | 687b6395d4d1810eef911adb3ac4defd7cd863c0 (patch) | |
tree | c45356a2c9d9b9e6756354fcfe49765d4b8968f5 /sd | |
parent | 1c501215611741dde9e5517cd1856c92d19285c1 (diff) |
Don't explicitly convert OUString to OString
See commit 57afeb8d9e35933630568a02fc48a00f5582b261
Change-Id: Idb41fb2e3b90bd0eb1d7ebd588c13fd50b9536fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98173
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/pptx-animations.cxx | 5 | ||||
-rw-r--r-- | sd/source/filter/eppt/pptx-epptooxml.cxx | 18 |
2 files changed, 11 insertions, 12 deletions
diff --git a/sd/source/filter/eppt/pptx-animations.cxx b/sd/source/filter/eppt/pptx-animations.cxx index 0badff184841..ec0f723c4974 100644 --- a/sd/source/filter/eppt/pptx-animations.cxx +++ b/sd/source/filter/eppt/pptx-animations.cxx @@ -129,8 +129,7 @@ void WriteAnimationProperty(const FSHelperPtr& pFS, const Any& rAny, sal_Int32 n pFS->singleElementNS(XML_p, XML_fltVal, XML_val, OString::number(fDouble)); break; case TypeClass_STRING: - pFS->singleElementNS(XML_p, XML_strVal, XML_val, - (*o3tl::doAccess<OUString>(rAny)).toUtf8()); + pFS->singleElementNS(XML_p, XML_strVal, XML_val, *o3tl::doAccess<OUString>(rAny)); break; default: break; @@ -837,7 +836,7 @@ void PPTXAnimationExport::WriteAnimationNodeAnimate(sal_Int32 nXmlNodeType) aPath = ::basegfx::utils::exportToSvgD(aPolyPoly, false, false, true, true); } - mpFS->startElementNS(XML_p, nXmlNodeType, XML_origin, "layout", XML_path, aPath.toUtf8()); + mpFS->startElementNS(XML_p, nXmlNodeType, XML_origin, "layout", XML_path, aPath); } else if (nXmlNodeType == XML_animRot) { diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx index 428cfe6169e6..e1cb766858c5 100644 --- a/sd/source/filter/eppt/pptx-epptooxml.cxx +++ b/sd/source/filter/eppt/pptx-epptooxml.cxx @@ -955,14 +955,14 @@ void PowerPointExport::WriteAuthors() "commentAuthors.xml"); pFS->startElementNS(XML_p, XML_cmAuthorLst, - FSNS(XML_xmlns, XML_p), this->getNamespaceURL(OOX_NS(ppt)).toUtf8()); + FSNS(XML_xmlns, XML_p), getNamespaceURL(OOX_NS(ppt))); for (const AuthorsMap::value_type& i : maAuthors) { pFS->singleElementNS(XML_p, XML_cmAuthor, XML_id, OString::number(i.second.nId), - XML_name, i.first.toUtf8(), - XML_initials, lcl_GetInitials(i.first).toUtf8(), + XML_name, i.first, + XML_initials, lcl_GetInitials(i.first), XML_lastIdx, OString::number(i.second.nLastIndex), XML_clrIdx, OString::number(i.second.nId)); } @@ -1004,7 +1004,7 @@ bool PowerPointExport::WriteComments(sal_uInt32 nPageNum) "application/vnd.openxmlformats-officedocument.presentationml.comments+xml"); pFS->startElementNS(XML_p, XML_cmLst, - FSNS(XML_xmlns, XML_p), this->getNamespaceURL(OOX_NS(ppt)).toUtf8()); + FSNS(XML_xmlns, XML_p), this->getNamespaceURL(OOX_NS(ppt))); do { @@ -1092,7 +1092,7 @@ void PowerPointExport::ImplWriteSlide(sal_uInt32 nPageNum, sal_uInt32 nMasterNum mPresentationFS->singleElementNS(XML_p, XML_sldId, XML_id, OString::number(GetNewSlideId()), - FSNS(XML_r, XML_id), sRelId.toUtf8()); + FSNS(XML_r, XML_id), sRelId); if (nPageNum == mnPages - 1) mPresentationFS->endElementNS(XML_p, XML_sldIdLst); @@ -1222,7 +1222,7 @@ void PowerPointExport::AddLayoutIdAndRelation(const FSHelperPtr& pFS, sal_Int32 pFS->singleElementNS(XML_p, XML_sldLayoutId, XML_id, OString::number(GetNewSlideMasterId()), - FSNS(XML_r, XML_id), sRelId.toUtf8()); + FSNS(XML_r, XML_id), sRelId); } void PowerPointExport::ImplWriteSlideMaster(sal_uInt32 nPageNum, Reference< XPropertySet > const& aXBackgroundPropSet) @@ -1243,7 +1243,7 @@ void PowerPointExport::ImplWriteSlideMaster(sal_uInt32 nPageNum, Reference< XPro mPresentationFS->singleElementNS(XML_p, XML_sldMasterId, XML_id, OString::number(GetNewSlideMasterId()), - FSNS(XML_r, XML_id), sRelId.toUtf8()); + FSNS(XML_r, XML_id), sRelId); if (nPageNum == mnMasterPages - 1) mPresentationFS->endElementNS(XML_p, XML_sldMasterIdLst); @@ -1839,7 +1839,7 @@ void PowerPointExport::WriteTheme(sal_Int32 nThemeNum) "application/vnd.openxmlformats-officedocument.theme+xml"); pFS->startElementNS(XML_a, XML_theme, - FSNS(XML_xmlns, XML_a), this->getNamespaceURL(OOX_NS(dml)).toUtf8(), + FSNS(XML_xmlns, XML_a), this->getNamespaceURL(OOX_NS(dml)), XML_name, "Office Theme"); pFS->startElementNS(XML_a, XML_themeElements); @@ -1896,7 +1896,7 @@ void PowerPointExport::WriteNotesMaster() "notesMasters/notesMaster1.xml"); mPresentationFS->singleElementNS(XML_p, XML_notesMasterId, - FSNS(XML_r, XML_id), sRelId.toUtf8()); + FSNS(XML_r, XML_id), sRelId); mPresentationFS->endElementNS(XML_p, XML_notesMasterIdLst); |