summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source')
-rw-r--r--oox/source/drawingml/table/predefined-table-styles.cxx10
-rw-r--r--oox/source/drawingml/textbodycontext.cxx2
2 files changed, 6 insertions, 6 deletions
diff --git a/oox/source/drawingml/table/predefined-table-styles.cxx b/oox/source/drawingml/table/predefined-table-styles.cxx
index a02c8ddf0c89..9011b5c8c628 100644
--- a/oox/source/drawingml/table/predefined-table-styles.cxx
+++ b/oox/source/drawingml/table/predefined-table-styles.cxx
@@ -905,11 +905,11 @@ std::unique_ptr<TableStyle> CreateTableStyle(const OUString& styleId)
pTableStyle->getFirstCol().getTextBoldStyle() = bFirstColTextBoldStyle;
pTableStyle->getLastCol().getTextBoldStyle() = bLastColTextBoldStyle;
- pTableStyle->getWholeTbl().getTextColor() = wholeTblTextColor;
- pTableStyle->getFirstRow().getTextColor() = firstRowTextColor;
- pTableStyle->getFirstCol().getTextColor() = firstColTextColor;
- pTableStyle->getLastRow().getTextColor() = lastRowTextColor;
- pTableStyle->getLastCol().getTextColor() = lastColTextColor;
+ pTableStyle->getWholeTbl().getTextColor() = std::move(wholeTblTextColor);
+ pTableStyle->getFirstRow().getTextColor() = std::move(firstRowTextColor);
+ pTableStyle->getFirstCol().getTextColor() = std::move(firstColTextColor);
+ pTableStyle->getLastRow().getTextColor() = std::move(lastRowTextColor);
+ pTableStyle->getLastCol().getTextColor() = std::move(lastColTextColor);
pTableStyle->getBand1H().getTextColor() = ::oox::drawingml::Color(); //band1HTextColor
pTableStyle->getBand1V().getTextColor() = ::oox::drawingml::Color(); //band1VTextColor
diff --git a/oox/source/drawingml/textbodycontext.cxx b/oox/source/drawingml/textbodycontext.cxx
index eef146b5d47a..ce8de24a09be 100644
--- a/oox/source/drawingml/textbodycontext.cxx
+++ b/oox/source/drawingml/textbodycontext.cxx
@@ -114,7 +114,7 @@ ContextHandlerRef TextParagraphContext::onCreateContext( sal_Int32 aElementToken
rtl::Reference<HyperLinkContext> pContext(new HyperLinkContext(
*this, rAttribs, pRun->getTextCharacterProperties().maHyperlinkPropertyMap));
// but create text run context because HyperLinkContext can't process internal w:r, w:t, etc
- return new RegularTextRunContext(*this, pRun);
+ return new RegularTextRunContext(*this, std::move(pRun));
}
default:
SAL_WARN("oox", "TextParagraphContext::onCreateContext: unhandled element: " << getBaseToken(aElementToken));