cid#1558088 COPY_INSTEAD_OF_MOVE

and

cid#1558080 COPY_INSTEAD_OF_MOVE
cid#1558077 COPY_INSTEAD_OF_MOVE
cid#1558055 COPY_INSTEAD_OF_MOVE
cid#1558043 COPY_INSTEAD_OF_MOVE
cid#1558039 COPY_INSTEAD_OF_MOVE
cid#1558015 COPY_INSTEAD_OF_MOVE
cid#1558014 COPY_INSTEAD_OF_MOVE
cid#1558009 COPY_INSTEAD_OF_MOVE
cid#1558002 COPY_INSTEAD_OF_MOVE
cid#1557998 COPY_INSTEAD_OF_MOVE
cid#1557996 COPY_INSTEAD_OF_MOVE
cid#1557990 COPY_INSTEAD_OF_MOVE
cid#1557986 COPY_INSTEAD_OF_MOVE
cid#1557980 COPY_INSTEAD_OF_MOVE
cid#1557971 COPY_INSTEAD_OF_MOVE
cid#1557968 COPY_INSTEAD_OF_MOVE
cid#1557967 COPY_INSTEAD_OF_MOVE
cid#1557961 COPY_INSTEAD_OF_MOVE
cid#1557959 COPY_INSTEAD_OF_MOVE
cid#1557958 COPY_INSTEAD_OF_MOVE
cid#1557956 COPY_INSTEAD_OF_MOVE
cid#1557953 COPY_INSTEAD_OF_MOVE
cid#1557949 COPY_INSTEAD_OF_MOVE
cid#1557947 COPY_INSTEAD_OF_MOVE
cid#1557940 COPY_INSTEAD_OF_MOVE
cid#1557931 COPY_INSTEAD_OF_MOVE
cid#1557930 COPY_INSTEAD_OF_MOVE
cid#1557915 COPY_INSTEAD_OF_MOVE
cid#1557913 COPY_INSTEAD_OF_MOVE
cid#1557910 COPY_INSTEAD_OF_MOVE
cid#1557886 COPY_INSTEAD_OF_MOVE
cid#1557884 COPY_INSTEAD_OF_MOVE
cid#1557880 COPY_INSTEAD_OF_MOVE
cid#1557875 COPY_INSTEAD_OF_MOVE
cid#1557871 COPY_INSTEAD_OF_MOVE
cid#1557862 COPY_INSTEAD_OF_MOVE
cid#1557847 COPY_INSTEAD_OF_MOVE
cid#1557845 COPY_INSTEAD_OF_MOVE
cid#1557844 COPY_INSTEAD_OF_MOVE
cid#1557843 COPY_INSTEAD_OF_MOVE
cid#1557838 COPY_INSTEAD_OF_MOVE
cid#1557835 COPY_INSTEAD_OF_MOVE
cid#1557834 COPY_INSTEAD_OF_MOVE
cid#1557828 COPY_INSTEAD_OF_MOVE
cid#1557823 COPY_INSTEAD_OF_MOVE
cid#1557817 COPY_INSTEAD_OF_MOVE
cid#1557813 COPY_INSTEAD_OF_MOVE
cid#1557812 COPY_INSTEAD_OF_MOVE

Change-Id: I55d4a920daa2d148683419169eb828325fd3c757
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171732
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-08-11 16:13:05 +01:00
parent 85acb1724e
commit d7056b1456
49 changed files with 58 additions and 61 deletions

View file

@ -1084,7 +1084,7 @@ EntryDescriptor DialogWindow::CreateEntryDescriptor()
ScriptDocument aDocument( GetDocument() );
OUString aLibName( GetLibName() );
LibraryLocation eLocation = aDocument.getLibraryLocation( aLibName );
return EntryDescriptor( aDocument, eLocation, aLibName, OUString(), GetName(), OBJ_TYPE_DIALOG );
return EntryDescriptor( std::move(aDocument), eLocation, aLibName, OUString(), GetName(), OBJ_TYPE_DIALOG );
}
void DialogWindow::SetReadOnly (bool bReadOnly)

View file

@ -1081,7 +1081,7 @@ namespace basegfx::utils
if(!aCandidateRange.overlaps(aTargetRange))
{
aTarget.append(aCandidate);
b = aTarget;
b = std::move(aTarget);
bCouldMergeSimple = true;
break;
}

View file

@ -529,7 +529,7 @@ void BColorStops::createSpaceAtStart(double fOffset)
candidate.getStopColor());
}
*this = aNewStops;
*this = std::move(aNewStops);
}
// removeSpaceAtStart removes fOffset space from start by

View file

@ -623,7 +623,7 @@ void SfxLibraryContainer::init_Impl( const OUString& rInitialDocumentURL,
if( aExtension == "xlc" )
{
meInitMode = CONTAINER_INIT_FILE;
INetURLObject aLibPathInetObj( aInitUrlInetObj );
INetURLObject aLibPathInetObj( std::move(aInitUrlInetObj) );
aLibPathInetObj.removeSegment();
maLibraryPath = aLibPathInetObj.GetMainURL( INetURLObject::DecodeMechanism::NONE );
}

View file

@ -297,7 +297,7 @@ void WrappedScaleProperty::setPropertyValue( tScaleProperty eScaleProperty, cons
{
TimeIncrement aTimeIncrement;
rOuterValue >>= aTimeIncrement;
aScaleData.TimeIncrement = aTimeIncrement;
aScaleData.TimeIncrement = std::move(aTimeIncrement);
bSetScaleData = true;
break;
}

View file

@ -297,8 +297,7 @@ bool InternalData::enlargeData( sal_Int32 nColumnCount, sal_Int32 nRowCount )
aNewData[ std::slice( nCol, m_nRowCount, nNewColumnCount ) ] ) =
m_aData[ std::slice( nCol, m_nRowCount, m_nColumnCount ) ];
m_aData.resize( nNewSize );
m_aData = aNewData;
m_aData = std::move(aNewData);
}
m_nColumnCount = nNewColumnCount;
m_nRowCount = nNewRowCount;
@ -451,8 +450,7 @@ void InternalData::deleteRow( sal_Int32 nAtIndex )
}
m_nRowCount = nNewRowCount;
m_aData.resize( nNewSize );
m_aData = aNewData;
m_aData = std::move(aNewData);
// labels
if( nAtIndex < static_cast< sal_Int32 >( m_aRowLabels.size()))

View file

@ -445,7 +445,7 @@ bool AreaChart::impl_createArea( VDataSeries* pSeries
std::vector<std::vector<css::drawing::Position3D>> aClippedPoly;
Clipping::clipPolygonAtRectangle( aPoly, pPosHelper->getScaledLogicClipDoubleRect(), aClippedPoly, false );
ShapeFactory::closePolygon(aClippedPoly); //again necessary after clipping
aPoly = aClippedPoly;
aPoly = std::move(aClippedPoly);
}
if(!ShapeFactory::hasPolygonAnyLines(aPoly))

View file

@ -162,7 +162,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getTypeInfo( )
}
aTypeInfoRows.push_back(aRow);
}
m_aTypeInfoRows = aTypeInfoRows;
m_aTypeInfoRows = std::move(aTypeInfoRows);
}
}
rtl::Reference<::connectivity::ODatabaseMetaDataResultSet> pResult = new ::connectivity::ODatabaseMetaDataResultSet(::connectivity::ODatabaseMetaDataResultSet::eTypeInfo);

View file

@ -871,7 +871,7 @@ void cppuhelper::ServiceManager::loadImplementation(
|| implementation->status == Data::Implementation::STATUS_LOADED))
{
implementation->status = Data::Implementation::STATUS_LOADED;
implementation->constructorFn = ctor;
implementation->constructorFn = std::move(ctor);
implementation->factory1 = f1;
implementation->factory2 = f2;
}

View file

@ -182,7 +182,7 @@ void fillPolyPolygonNeededToBeSplit(basegfx::B2DPolyPolygon& rPolyPolygon)
if (aSplitted.count() != nPolyCount)
{
rPolyPolygon = aSplitted;
rPolyPolygon = std::move(aSplitted);
}
}

View file

@ -113,7 +113,7 @@ AlphaMask implcreateAlphaMask(drawinglayer::primitive2d::Primitive2DContainer& r
}
const drawinglayer::primitive2d::Primitive2DReference xRef(
new drawinglayer::primitive2d::ModifiedColorPrimitive2D(std::move(rSequence),
aBColorModifier));
std::move(aBColorModifier)));
const drawinglayer::primitive2d::Primitive2DContainer xSeq{ xRef };
// render

View file

@ -2093,7 +2093,7 @@ SvxAutoCorrect::SearchWordsInList(
auto pRet = lcl_SearchWordsInList( &rList, rTxt, rStt, nEndPos );
if( pRet )
{
rLang = aLanguageTag;
rLang = std::move(aLanguageTag);
return pRet;
}
}

View file

@ -444,7 +444,7 @@ void FilterCache::setItem( EItemType eType ,
// They can't be saved here and must be read on demand later, if they are needed.
removeStatePropsFromItem(aItem);
rList[sItem] = aItem;
rList[sItem] = std::move(aItem);
impl_addItem2FlushList(eType, sItem);
}

View file

@ -1317,7 +1317,7 @@ OUString SvtFileDialog::implGetInitialURL( const OUString& _rPath, std::u16strin
}
if ( !bIsInvalid )
aURLParser = aParent;
aURLParser = std::move(aParent);
}
if ( !bIsInvalid && bIsFolder )

View file

@ -1170,7 +1170,7 @@ void PathSettings::impl_setPathValue( sal_Int32 nID ,
std::vector<OUString> lList = comphelper::sequenceToContainer<std::vector<OUString>>(lTmpList);
if (! impl_isValidPath(lList))
throw css::lang::IllegalArgumentException();
aChangePath.lInternalPaths = lList;
aChangePath.lInternalPaths = std::move(lList);
}
break;

View file

@ -184,7 +184,7 @@ void ImageList::ImplAddImage( std::u16string_view aPrefix, const OUString &aName
if (!aInsert)
aInsert = Image( OUString::Concat("private:graphicrepository/") + aPrefix + aName );
ImageAryData *pImg = new ImageAryData{ aName, nId, aInsert };
ImageAryData *pImg = new ImageAryData{ aName, nId, std::move(aInsert) };
maImages.emplace_back( pImg );
if( !aName.isEmpty() )
maNameHash [ aName ] = pImg;

View file

@ -81,7 +81,8 @@ private:
/// @throws HelpProcessingException
/// @throws BasicCodeTagger::TaggerException
void link();
static void addBookmark( FILE* pFile_DBHelp, std::string thishid,
static void addBookmark( FILE* pFile_DBHelp,
const std::string& thishid,
const std::string& fileB, const std::string& anchorB,
const std::string& jarfileB, const std::string& titleB );
};

View file

@ -485,7 +485,7 @@ void HelpCompiler::compile()
actMod = actMod.substr(0, actMod.find('/'));
}
}
streamTable.document_module = actMod;
streamTable.document_module = std::move(actMod);
xmlFreeDoc(docResolvedOrg);
}

View file

@ -222,15 +222,14 @@ namespace URLEncoder
}
}
void HelpLinker::addBookmark( FILE* pFile_DBHelp, std::string thishid,
void HelpLinker::addBookmark( FILE* pFile_DBHelp,
const std::string& thishid,
const std::string& fileB, const std::string& anchorB,
const std::string& jarfileB, const std::string& titleB)
{
HCDBG(std::cerr << "HelpLinker::addBookmark " << thishid << " " <<
fileB << " " << anchorB << " " << jarfileB << " " << titleB << std::endl);
thishid = URLEncoder::encode(thishid);
int fileLen = fileB.length();
if (!anchorB.empty())
fileLen += (1 + anchorB.length());
@ -258,7 +257,7 @@ void HelpLinker::addBookmark( FILE* pFile_DBHelp, std::string thishid,
if( pFile_DBHelp != nullptr )
{
std::string aValueStr( dataB.begin(), dataB.end() );
writeKeyValue_DBHelp( pFile_DBHelp, thishid, aValueStr );
writeKeyValue_DBHelp( pFile_DBHelp, URLEncoder::encode(thishid), aValueStr );
}
}

View file

@ -429,7 +429,7 @@ void SvIdlParser::ReadInterfaceOrShellMethod( SvMetaAttribute& rAttr )
Read( '(' );
tools::SvRef<SvMetaType> xT(new SvMetaType() );
xT->SetRef(rAttr.GetType() );
rAttr.aType = xT;
rAttr.aType = std::move(xT);
rAttr.aType->SetType( MetaTypeType::Method );
if (ReadIf(')'))
return;

View file

@ -216,11 +216,11 @@ void recentUnoChanged( GtkWidget* pSelector, gpointer /* pItem */ )
g_free(pUnoCmd);
}
static void addToRecentUnoCommands(GtvApplicationWindow* pWindow, const std::string& rUnoCmd, std::string rArgs)
static void addToRecentUnoCommands(GtvApplicationWindow* pWindow, const std::string& rUnoCmd, std::string aArgs)
{
GtvMainToolbar* pToolbar = gtv_application_window_get_main_toolbar(pWindow);
rArgs.erase(std::find(rArgs.begin(), rArgs.end(), '\n'));
const std::string rUnoCmdStr = rUnoCmd + " | " + rArgs;
aArgs.erase(std::find(aArgs.begin(), aArgs.end(), '\n'));
const std::string rUnoCmdStr = rUnoCmd + " | " + aArgs;
// add to file
@ -276,7 +276,7 @@ void unoCommandDebugger(GtkWidget* pButton, gpointer /* pItem */)
g_info("Generated UNO command: %s %s", sUnoCmd, aArguments.c_str());
lok_doc_view_post_command(LOK_DOC_VIEW(window->lokdocview), sUnoCmd, (aArguments.empty() ? nullptr : aArguments.c_str()), false);
addToRecentUnoCommands(window, sUnoCmd, aArguments);
addToRecentUnoCommands(window, sUnoCmd, std::move(aArguments));
g_free(sUnoCmd);
}

View file

@ -224,7 +224,7 @@ uno::Sequence< Locale > SAL_CALL LangGuess_Impl::getEnabledLanguages( )
css::lang::Locale current_aRes;
current_aRes.Language = OUString::createFromAscii( gs[i].GetLanguage() );
current_aRes.Country = OUString::createFromAscii( gs[i].GetCountry() );
pRes[i] = current_aRes;
pRes[i] = std::move(current_aRes);
}
return aRes;
@ -246,7 +246,7 @@ uno::Sequence< Locale > SAL_CALL LangGuess_Impl::getDisabledLanguages( )
css::lang::Locale current_aRes;
current_aRes.Language = OUString::createFromAscii( gs[i].GetLanguage() );
current_aRes.Country = OUString::createFromAscii( gs[i].GetCountry() );
pRes[i] = current_aRes;
pRes[i] = std::move(current_aRes);
}
return aRes;

View file

@ -1204,7 +1204,7 @@ void ORptExport::exportAutoStyle(XPropertySet* _xProp,const Reference<XFormatted
{ // there is already a property but it has the wrong type
// (integer not string); TODO: can we prevent it
// getting added earlier?
(*iter) = aNumberStyleState;
(*iter) = std::move(aNumberStyleState);
}
}
}

View file

@ -2141,7 +2141,7 @@ public:
auto* pList = rDestDoc.GetSparklineList(mrDestColumn.GetTab());
pList->addSparkline(pNewSparkline);
miDestPosition = mrDestSparkline.set(miDestPosition, nDestRow, new sc::SparklineCell(pNewSparkline));
miDestPosition = mrDestSparkline.set(miDestPosition, nDestRow, new sc::SparklineCell(std::move(pNewSparkline)));
}
};

View file

@ -4661,7 +4661,7 @@ struct ScDependantsCalculator
mxGroup->mbPartOfCycle = true;
if (pSuccessfulDependencies && !bHasSelfReferences)
*pSuccessfulDependencies = aRangeList;
*pSuccessfulDependencies = std::move(aRangeList);
return !bHasSelfReferences;
}

View file

@ -2865,7 +2865,7 @@ void XclImpChTypeGroup::ReadChDataFormat( XclImpStream& rStrm )
const XclChDataPointPos& rPos = xDataFmt->GetPointPos();
if( (rPos.mnSeriesIdx == 0) && (rPos.mnPointIdx == 0) &&
(xDataFmt->GetFormatIdx() == EXC_CHDATAFORMAT_DEFAULT) )
mxGroupFmt = xDataFmt;
mxGroupFmt = std::move(xDataFmt);
}
void XclImpChTypeGroup::InsertDataSeries( Reference< XChartType > const & xChartType,

View file

@ -457,7 +457,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell& rViewSh, vcl::Window* pWin, ScDrawV
bAutomaticMark = true;
}
ScMarkData aMultiMark( aMark );
ScMarkData aMultiMark(std::move(aMark));
aMultiMark.MarkToMulti();
ScRangeList aRanges;

View file

@ -1864,7 +1864,7 @@ sal_Int32 SAL_CALL ScModelObj::getRendererCount(const uno::Any& aSelection,
if (!pPrintFuncCache || !pPrintFuncCache->IsSameSelection(aStatus) || bUsePrintDialogSetting
|| bPrintAreaReset)
{
pPrintFuncCache.reset(new ScPrintFuncCache(pDocShell, aMark, aStatus, aPrintPageSize,
pPrintFuncCache.reset(new ScPrintFuncCache(pDocShell, aMark, std::move(aStatus), aPrintPageSize,
bPrintPageLandscape, bUsePrintDialogSetting));
}
sal_Int32 nPages = pPrintFuncCache->GetPageCount();

View file

@ -956,7 +956,7 @@ void ViewStyleContainer::ProcessViewStyle(
PresenterTheme::SharedFontDescriptor pFont (
ReadContext::ReadFont(xFontNode, PresenterTheme::SharedFontDescriptor()));
if (pFont)
pStyle->mpFont = pFont;
pStyle->mpFont = std::move(pFont);
Reference<container::XHierarchicalNameAccess> xBackgroundNode (
PresenterConfigurationAccess::GetProperty(rxProperties, u"Background"_ustr),
@ -968,7 +968,7 @@ void ViewStyleContainer::ProcessViewStyle(
rReadContext.mxCanvas,
SharedBitmapDescriptor()));
if (pBackground && pBackground->GetNormalBitmap().is())
pStyle->mpBackground = pBackground;
pStyle->mpBackground = std::move(pBackground);
mStyles.push_back(pStyle);
}

View file

@ -671,7 +671,7 @@ void Ppt97Animation::createAndSetCustomAnimationEffect( SdrObject* pObj )
else
pGroupEffect->setNodeType( presentation::EffectNodeType::AFTER_PREVIOUS );
}
pLastEffect = pGroupEffect;
pLastEffect = std::move(pGroupEffect);
nIndex++;
}
}

View file

@ -778,7 +778,7 @@ void FuConstructRectangle::SetLineEnds(SfxItemSet& rAttr, SdrObject const & rObj
case SID_LINE_SQUARE_ARROW:
{
// connector with arrow end
rAttr.Put(XLineEndItem(SvxResId(RID_SVXSTR_ARROW), aArrow));
rAttr.Put(XLineEndItem(SvxResId(RID_SVXSTR_ARROW), std::move(aArrow)));
rAttr.Put(XLineEndWidthItem(nWidth));
}
break;

View file

@ -373,7 +373,7 @@ void FuMorph::ImpInsertPolygons(
if ( !pPageView )
return;
SfxItemSet aSet( aSet1 );
SfxItemSet aSet( std::move(aSet1) );
rtl::Reference<SdrObjGroup> xObjGroup(new SdrObjGroup(mpView->getSdrModelFromSdrView()));
SdrObjList* pObjList = xObjGroup->GetSubList();
const size_t nCount = rPolyPolyList3D.size();

View file

@ -893,7 +893,7 @@ static void FillCellInfoMatrix( const CellInfoVector& rStyle, const TableStyleSe
xCellInfo = rStyle[sdr::table::body_style];
}
rMatrix[(nCol * nPreviewColumns) + nRow] = xCellInfo;
rMatrix[(nCol * nPreviewColumns) + nRow] = std::move(xCellInfo);
}
}
}

View file

@ -1028,7 +1028,7 @@ ShellDescriptor ViewShellManager::Implementation::CreateSubShell (
// Exit the loop when the shell has been successfully created.
if (aResult.mpShell != nullptr)
{
aResult.mpFactory = pFactory;
aResult.mpFactory = std::move(pFactory);
aResult.mnId = nShellId;
break;
}

View file

@ -966,8 +966,7 @@ void SlideView::setClip( const basegfx::B2DPolyPolygon& rClip )
if( aNewClip != maClip )
{
maClip = aNewClip;
maClip = std::move(aNewClip);
updateClip();
}
}

View file

@ -215,7 +215,7 @@ void DocumentDeviceManager::setJobsetup(/*[in]*/ const JobSetup &rJobSetup )
setPrinter( p, true, true );
else
{
mpPrt = p;
mpPrt = std::move(p);
bDataChanged = true;
}
}

View file

@ -718,7 +718,7 @@ void SAL_CALL SwXContentControl::setPropertyValue(const OUString& rPropertyName,
= SwContentControlListItem::ItemsFromAny(rValue);
if (m_pImpl->m_bIsDescriptor)
{
m_pImpl->m_aListItems = aItems;
m_pImpl->m_aListItems = std::move(aItems);
if (!m_pImpl->m_bComboBox && !m_pImpl->m_bDropDown)
{

View file

@ -808,7 +808,7 @@ FlyProcessingState SwWW8AttrIter::OutFlys(sal_Int32 nSwPos)
}
}
m_rExport.m_bLinkedTextboxesHelperInitialized = false;
m_rExport.m_aLinkedTextboxesHelper[sLinkChainName] = aLinkedTextboxInfo;
m_rExport.m_aLinkedTextboxesHelper[sLinkChainName] = std::move(aLinkedTextboxInfo);
}
}
++linkedTextboxesIter;

View file

@ -3486,7 +3486,7 @@ eF_ResT SwWW8ImplReader::Read_F_Tox( WW8FieldDesc* pF, OUString& rStr )
const SwPosition* pPos = m_pPaM->GetPoint();
SwFltTOX aFltTOX( pBase );
SwFltTOX aFltTOX(std::move(pBase));
// test if there is already a break item on this node
if(SwContentNode* pNd = pPos->GetNode().GetContentNode())

View file

@ -1095,7 +1095,7 @@ void SwTextShell::Execute(SfxRequest &rReq)
std::shared_ptr<weld::DialogController> pDialogController(pAbstractDialog->getDialogController());
weld::DialogController::runAsync(pDialogController,
[pAbstractDialog, &rWrtSh] (sal_Int32 nResult) {
[pAbstractDialog=std::move(pAbstractDialog), &rWrtSh] (sal_Int32 nResult) {
if( RET_OK == nResult )
{
sal_uInt16 nKind = pAbstractDialog->GetKind();

View file

@ -765,7 +765,7 @@ bool SwView::ExecSpellPopup(const Point& rPt)
// Execute dispatch asynchronously
ExecuteInfo* pExecuteInfo = new ExecuteInfo;
pExecuteInfo->xDispatch = xDispatch;
pExecuteInfo->aTargetURL = aURL;
pExecuteInfo->aTargetURL = std::move(aURL);
Application::PostUserEvent( LINK(nullptr, AsyncExecute , ExecuteHdl_Impl), pExecuteInfo );
}
}

View file

@ -4826,7 +4826,7 @@ void INetURLObject::CutLastName()
aTemp.clearQuery();
if (!aTemp.removeSegment(LAST_SEGMENT, false))
return;
*this = aTemp;
*this = std::move(aTemp);
}
OUString INetURLObject::PathToFileName() const

View file

@ -1965,7 +1965,7 @@ bool Content::exchangeIdentity(
aGuard.clear();
if ( exchange( xNewId ) )
{
m_aUri = aNewUri;
m_aUri = std::move(aNewUri);
if ( isFolder() )
{
// Process instantiated children...

View file

@ -77,7 +77,7 @@ BitmapEx BitmapSimpleColorQuantizationFilter::execute(BitmapEx const& aBitmapEx)
const MapMode aMap(aBitmap.GetPrefMapMode());
const Size aSize(aBitmap.GetPrefSize());
aBitmap = aNewBmp;
aBitmap = std::move(aNewBmp);
aBitmap.SetPrefMapMode(aMap);
aBitmap.SetPrefSize(aSize);

View file

@ -208,7 +208,7 @@ bool DXF2GDIMetaFile::SetFontAttribute(const DXFBasicEntity & rE, short nAngle,
aFont.SetAlignment(ALIGN_BASELINE);
aFont.SetOrientation(Degree10(nAngle));
if (aActFont!=aFont) {
aActFont=aFont;
aActFont=std::move(aFont);
pVirDev->SetFont(aActFont);
}

View file

@ -803,7 +803,7 @@ bool ImportEpsGraphic( SvStream & rStream, Graphic & rGraphic)
aGraphic);
}
GfxLink aGfxLink( aBuf, GfxLinkType::EpsBuffer ) ;
GfxLink aGfxLink(std::move(aBuf), GfxLinkType::EpsBuffer);
aMtf.AddAction( static_cast<MetaAction*>( new MetaEPSAction( Point(), Size( nWidth, nHeight ),
std::move(aGfxLink), aGraphic.GetGDIMetaFile() ) ) );
CreateMtfReplacementAction( aMtf, rStream, nOrigPos, nPSSize, nPosWMF, nSizeWMF, nPosTIFF, nSizeTIFF );

View file

@ -698,7 +698,7 @@ void OutputDevice::ReMirror( vcl::Region &rRegion ) const
aMirroredRegion.Union(rectangle);
}
rRegion = aMirroredRegion;
rRegion = std::move(aMirroredRegion);
}

View file

@ -450,7 +450,7 @@ void PrinterInfoManager::initialize()
aPrinter.m_aAlternateFiles = find_it->second.m_aAlternateFiles;
aPrinter.m_aAlternateFiles.insert( find_it->second.m_aFile );
}
m_aPrinters[ aPrinterName ] = aPrinter;
m_aPrinters[ aPrinterName ] = std::move(aPrinter);
}
}
}

View file

@ -2296,7 +2296,7 @@ void XMLTextParagraphExport::exportTextRangeEnumeration(
{
if (HyperlinkData aNewHyperlinkData(xPropSet); aNewHyperlinkData != aHyperlinkData)
{
aHyperlinkData = aNewHyperlinkData;
aHyperlinkData = std::move(aNewHyperlinkData);
oTextA.reset();
if (aHyperlinkData.addHyperlinkAttributes(GetExport()))
{