summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/eertfpar.cxx16
-rw-r--r--editeng/source/items/frmitems.cxx22
-rw-r--r--editeng/source/uno/unotext.cxx2
3 files changed, 20 insertions, 20 deletions
diff --git a/editeng/source/editeng/eertfpar.cxx b/editeng/source/editeng/eertfpar.cxx
index 16f202d24a28..ccecfa5723de 100644
--- a/editeng/source/editeng/eertfpar.cxx
+++ b/editeng/source/editeng/eertfpar.cxx
@@ -62,14 +62,14 @@ RtfImportInfo::~RtfImportInfo()
{
}
-EditRTFParser::EditRTFParser(SvStream& rIn, EditSelection aSel, SfxItemPool& rAttrPool,
- EditEngine* pEditEngine)
- : SvxRTFParser(rAttrPool, rIn)
- , aCurSel(aSel)
- , mpEditEngine(pEditEngine)
- , aRTFMapMode(MapUnit::MapTwip)
- , nDefFont(0)
- , bLastActionInsertParaBreak(false)
+EditRTFParser::EditRTFParser(
+ SvStream& rIn, EditSelection aSel, SfxItemPool& rAttrPool, EditEngine* pEditEngine) :
+ SvxRTFParser(rAttrPool, rIn),
+ aCurSel(std::move(aSel)),
+ mpEditEngine(pEditEngine),
+ aRTFMapMode(MapUnit::MapTwip),
+ nDefFont(0),
+ bLastActionInsertParaBreak(false)
{
SetInsPos(EditPosition(mpEditEngine, &aCurSel));
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index 1904c0d1a7a1..b92feac5ea55 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -3236,15 +3236,15 @@ SvxBrushItem::SvxBrushItem(const SvxBrushItem& rItem)
}
SvxBrushItem::SvxBrushItem(SvxBrushItem&& rItem)
- : SfxPoolItem(rItem)
- , aColor(rItem.aColor)
- , nShadingValue(rItem.nShadingValue)
+ : SfxPoolItem(std::move(rItem))
+ , aColor(std::move(rItem.aColor))
+ , nShadingValue(std::move(rItem.nShadingValue))
, xGraphicObject(std::move(rItem.xGraphicObject))
- , nGraphicTransparency(rItem.nGraphicTransparency)
+ , nGraphicTransparency(std::move(rItem.nGraphicTransparency))
, maStrLink(std::move(rItem.maStrLink))
, maStrFilter(std::move(rItem.maStrFilter))
- , eGraphicPos(rItem.eGraphicPos)
- , bLoadAgain(rItem.bLoadAgain)
+ , eGraphicPos(std::move(rItem.eGraphicPos))
+ , bLoadAgain(std::move(rItem.bLoadAgain))
{
}
@@ -3514,14 +3514,14 @@ SvxBrushItem& SvxBrushItem::operator=(const SvxBrushItem& rItem)
SvxBrushItem& SvxBrushItem::operator=(SvxBrushItem&& rItem)
{
- aColor = rItem.aColor;
- nShadingValue = rItem.nShadingValue;
+ aColor = std::move(rItem.aColor);
+ nShadingValue = std::move(rItem.nShadingValue);
xGraphicObject = std::move(rItem.xGraphicObject);
- nGraphicTransparency = rItem.nGraphicTransparency;
+ nGraphicTransparency = std::move(rItem.nGraphicTransparency);
maStrLink = std::move(rItem.maStrLink);
maStrFilter = std::move(rItem.maStrFilter);
- eGraphicPos = rItem.eGraphicPos;
- bLoadAgain = rItem.bLoadAgain;
+ eGraphicPos = std::move(rItem.eGraphicPos);
+ bLoadAgain = std::move(rItem.bLoadAgain);
return *this;
}
diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx
index 38ba0c76d703..5d105afbdf71 100644
--- a/editeng/source/uno/unotext.cxx
+++ b/editeng/source/uno/unotext.cxx
@@ -287,7 +287,7 @@ void SvxUnoTextRangeBase::attachField( std::unique_ptr<SvxFieldData> pData ) thr
if( pForwarder )
{
SvxFieldItem aField( std::move(pData), EE_FEATURE_FIELD );
- pForwarder->QuickInsertField(aField, maSelection);
+ pForwarder->QuickInsertField( std::move(aField), maSelection );
}
}