cid#1545970 COPY_INSTEAD_OF_MOVE

and

cid#1545957 COPY_INSTEAD_OF_MOVE
cid#1545944 COPY_INSTEAD_OF_MOVE
cid#1545939 COPY_INSTEAD_OF_MOVE
cid#1545931 COPY_INSTEAD_OF_MOVE
cid#1545926 COPY_INSTEAD_OF_MOVE
cid#1545909 COPY_INSTEAD_OF_MOVE
cid#1545899 COPY_INSTEAD_OF_MOVE
cid#1545896 COPY_INSTEAD_OF_MOVE
cid#1545894 COPY_INSTEAD_OF_MOVE
cid#1545858 COPY_INSTEAD_OF_MOVE
cid#1545823 COPY_INSTEAD_OF_MOVE
cid#1545820 COPY_INSTEAD_OF_MOVE
cid#1545819 COPY_INSTEAD_OF_MOVE
cid#1545772 COPY_INSTEAD_OF_MOVE
cid#1545749 COPY_INSTEAD_OF_MOVE
cid#1545743 COPY_INSTEAD_OF_MOVE
cid#1545739 COPY_INSTEAD_OF_MOVE
cid#1545635 COPY_INSTEAD_OF_MOVE
cid#1545603 COPY_INSTEAD_OF_MOVE
cid#1545602 COPY_INSTEAD_OF_MOVE
cid#1545592 COPY_INSTEAD_OF_MOVE
cid#1545544 COPY_INSTEAD_OF_MOVE
cid#1545532 COPY_INSTEAD_OF_MOVE
cid#1545520 COPY_INSTEAD_OF_MOVE
cid#1545512 COPY_INSTEAD_OF_MOVE
cid#1545490 COPY_INSTEAD_OF_MOVE
cid#1545483 COPY_INSTEAD_OF_MOVE
cid#1545467 COPY_INSTEAD_OF_MOVE
cid#1545461 COPY_INSTEAD_OF_MOVE
cid#1545458 COPY_INSTEAD_OF_MOVE
cid#1545428 COPY_INSTEAD_OF_MOVE
cid#1545394 COPY_INSTEAD_OF_MOVE
cid#1545385 COPY_INSTEAD_OF_MOVE
cid#1545383 COPY_INSTEAD_OF_MOVE
cid#1545366 COPY_INSTEAD_OF_MOVE
cid#1545357 COPY_INSTEAD_OF_MOVE

Change-Id: I76224326977b4067b94ca3176cad1ca6de17930a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160847
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara
2023-12-16 22:39:20 +01:00
parent 81c4be4582
commit de4b3a135f
35 changed files with 97 additions and 127 deletions
+1 -2
View File
@@ -531,8 +531,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
{}
}
OUString aPropIdStr = aEsc + aPureIdStr;
pIdStrings[i] = aPropIdStr;
pIdStrings[i] = aEsc + aPureIdStr;
}
xPropertySet->setPropertyValue( aPropName, Any(aIdStrings) );
}
+1 -2
View File
@@ -1541,7 +1541,6 @@ void SbiRuntime::StepLIKE()
SbxVariableRef refVar1 = PopVar();
SbxVariableRef refVar2 = PopVar();
OUString pattern = VBALikeToRegexp(refVar1->GetOUString());
OUString value = refVar2->GetOUString();
i18nutil::SearchOptions2 aSearchOpt;
@@ -1549,7 +1548,7 @@ void SbiRuntime::StepLIKE()
aSearchOpt.AlgorithmType2 = css::util::SearchAlgorithms2::REGEXP;
aSearchOpt.Locale = Application::GetSettings().GetLanguageTag().getLocale();
aSearchOpt.searchString = pattern;
aSearchOpt.searchString = VBALikeToRegexp(refVar1->GetOUString());
bool bTextMode(true);
bool bCompatibility = ( GetSbData()->pInst && GetSbData()->pInst->IsCompatibility() );
@@ -432,8 +432,7 @@ OUString SelectionHelper::getHitObjectCID(
if( aRet == aWallCID )
{
OUString aDiagramCID = ObjectIdentifier::createClassifiedIdentifier( OBJECTTYPE_DIAGRAM, OUString::number( 0 ) );
aRet = aDiagramCID;
aRet = ObjectIdentifier::createClassifiedIdentifier( OBJECTTYPE_DIAGRAM, OUString::number( 0 ) );
}
}
}
+1 -2
View File
@@ -2943,8 +2943,7 @@ IMPL_LINK_NOARG(SvxIconSelectorDialog, DeleteHdl, weld::Button&, void)
sal_uInt16 nId = m_xTbSymbol->GetSelectedItemId();
OUString aSelImageText = m_xTbSymbol->GetItemText( nId );
uno::Sequence< OUString > URLs { aSelImageText };
uno::Sequence<OUString> URLs { m_xTbSymbol->GetItemText(nId) };
m_xTbSymbol->RemoveItem(nId);
m_xImportedImageManager->removeImages( SvxConfigPageHelper::GetImageType(), URLs );
if ( m_xImportedImageManager->isModified() )
+2 -3
View File
@@ -32,9 +32,8 @@ SAL_DLLPUBLIC_EXPORT bool GetSpecialCharsForEdit(weld::Widget* i_pParent, const
if (aDlg.run() == RET_OK)
{
sal_UCS4 cChar = aDlg.GetChar();
// using the new UCS4 constructor
OUString aOUStr( &cChar, 1 );
o_rResult = aOUStr;
// using the UCS4 constructor
o_rResult = OUString(&cChar, 1);
bRet = true;
}
return bRet;
+1 -2
View File
@@ -2573,8 +2573,7 @@ short OfaTreeOptionsDialog::run()
if ( !bIsFromExtensionManager )
{
// collect all DictionaryList Events while the dialog is executed
Reference<css::linguistic2::XSearchableDictionaryList> xDictionaryList(LinguMgr::GetDictionaryList());
pClamp.reset( new SvxDicListChgClamp( xDictionaryList ) );
pClamp.reset(new SvxDicListChgClamp(LinguMgr::GetDictionaryList()));
}
return SfxOkDialogController::run();
+1 -2
View File
@@ -190,8 +190,7 @@ IMPL_LINK_NOARG(WebConnectionInfoDialog, ChangePasswordHdl, weld::Button&, void)
if ( pPasswordRequest->isPassword() )
{
OUString aNewPass = pPasswordRequest->getPassword();
uno::Sequence<OUString> aPasswd { aNewPass };
uno::Sequence<OUString> aPasswd { pPasswordRequest->getPassword() };
uno::Reference< task::XPasswordContainer2 > xPasswdContainer(
task::PasswordContainer::create(comphelper::getProcessComponentContext()));
@@ -222,8 +222,7 @@ void OContainerMediator::notifyElementCreated( const OUString& _sName, const Ref
DBG_UNHANDLED_EXCEPTION("dbaccess");
}
::rtl::Reference pForward( new OPropertyForward( _xDest, m_xSettings, _sName, aPropertyList ) );
m_aForwardList[ _sName ] = pForward;
m_aForwardList[_sName].set(new OPropertyForward(_xDest, m_xSettings, _sName, aPropertyList));
}
} // namespace dbaccess
@@ -156,14 +156,12 @@ void GraphicPrimitive2D::create2DDecomposition(Primitive2DContainer& rContainer,
getGraphicAttr().GetBottomCrop()));
// embed content in cropPrimitive
Primitive2DReference xPrimitive(
aRetval = Primitive2DContainer{ Primitive2DReference(
new CropPrimitive2D(std::move(aRetval), aTransform,
getGraphicAttr().GetLeftCrop() * aCropScaleFactor.getX(),
getGraphicAttr().GetTopCrop() * aCropScaleFactor.getY(),
getGraphicAttr().GetRightCrop() * aCropScaleFactor.getX(),
getGraphicAttr().GetBottomCrop() * aCropScaleFactor.getY()));
aRetval = Primitive2DContainer{ xPrimitive };
getGraphicAttr().GetBottomCrop() * aCropScaleFactor.getY())) };
}
rContainer.append(std::move(aRetval));
@@ -126,11 +126,12 @@ namespace drawinglayer::primitive2d
if(0 != mnDiscreteWidth && 0 != mnDiscreteHeight)
{
const geometry::ViewInformation2D aViewInformation2D;
primitive2d::Primitive2DReference xEmbedRef(
new primitive2d::TransformPrimitive2D(
basegfx::utils::createScaleB2DHomMatrix(mnDiscreteWidth, mnDiscreteHeight),
Primitive2DContainer(getChildren())));
primitive2d::Primitive2DContainer xEmbedSeq { xEmbedRef };
primitive2d::Primitive2DContainer xEmbedSeq {
primitive2d::Primitive2DReference(
new primitive2d::TransformPrimitive2D(
basegfx::utils::createScaleB2DHomMatrix(mnDiscreteWidth, mnDiscreteHeight),
Primitive2DContainer(getChildren())))
};
const BitmapEx aBitmapEx(
convertToBitmapEx(
@@ -244,12 +245,12 @@ namespace drawinglayer::primitive2d
aMaskRange.getRange(),
aMaskRange.getMinimum()));
Primitive2DReference xRef(
new TransformPrimitive2D(
aMaskTransform,
std::move(aRetval)));
aRetval = Primitive2DContainer { xRef };
aRetval = Primitive2DContainer {
Primitive2DReference(
new TransformPrimitive2D(
aMaskTransform,
std::move(aRetval)))
};
}
// embed result in mask
+6 -7
View File
@@ -336,19 +336,18 @@ namespace wmfemfhelper
{
drawinglayer::primitive2d::Primitive2DContainer xRetval = std::move(aTargets);
if (!xRetval.empty() && rPropertyHolder.getClipPolyPolygonActive())
{
const basegfx::B2DPolyPolygon& rClipPolyPolygon = rPropertyHolder.getClipPolyPolygon();
if (rClipPolyPolygon.count())
{
drawinglayer::primitive2d::Primitive2DReference xMask(
new drawinglayer::primitive2d::MaskPrimitive2D(
rClipPolyPolygon,
std::move(xRetval)));
xRetval = drawinglayer::primitive2d::Primitive2DContainer{ xMask };
xRetval = drawinglayer::primitive2d::Primitive2DContainer{
drawinglayer::primitive2d::Primitive2DReference(
new drawinglayer::primitive2d::MaskPrimitive2D(
rClipPolyPolygon,
std::move(xRetval)))
};
}
}
@@ -412,14 +412,12 @@ void SAL_CALL DispatchRecorder::replaceByIndex(sal_Int32 idx, const css::uno::An
auto pStatement = o3tl::doAccess<css::frame::DispatchStatement>(element);
css::frame::DispatchStatement aStatement(
m_aStatements[idx] = css::frame::DispatchStatement(
pStatement->aCommand,
pStatement->aTarget,
pStatement->aArgs,
pStatement->nFlags,
pStatement->bIsComment);
m_aStatements[idx] = aStatement;
}
} // namespace framework
@@ -1089,11 +1089,10 @@ Sequence< Sequence< PropertyValue > > SAL_CALL ModuleUIConfigurationManager::get
sal_Int32 n = 0;
for (auto const& elem : aUIElementInfoCollection)
{
Sequence< PropertyValue > aUIElementInfo{
aElementInfoSeq[n++] = Sequence<PropertyValue> {
comphelper::makePropertyValue("ResourceURL", elem.second.aResourceURL),
comphelper::makePropertyValue(m_aPropUIName, elem.second.aUIName)
};
aElementInfoSeq[n++] = aUIElementInfo;
}
return comphelper::containerToSequence(aElementInfoSeq);
@@ -620,13 +620,10 @@ void SAL_CALL ToolbarsMenuController::itemSelected( const css::awt::MenuEvent& r
Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
if ( xDispatchProvider.is() )
{
Reference< XDispatch > xDispatch = xDispatchProvider->queryDispatch(
aTargetURL, OUString(), 0 );
ExecuteInfo* pExecuteInfo = new ExecuteInfo;
pExecuteInfo->xDispatch = xDispatch;
pExecuteInfo->aTargetURL = aTargetURL;
pExecuteInfo->aArgs = aArgs;
pExecuteInfo->xDispatch = xDispatchProvider->queryDispatch(aTargetURL, OUString(), 0);
pExecuteInfo->aTargetURL = aTargetURL;
pExecuteInfo->aArgs = aArgs;
Application::PostUserEvent( LINK(nullptr, ToolbarsMenuController, ExecuteHdl_Impl), pExecuteInfo );
}
}
+1 -1
View File
@@ -714,7 +714,7 @@ public:
virtual OUString GetSurroundingText() const override;
virtual Selection GetSurroundingTextSelection() const override;
virtual bool DeleteSurroundingText(const Selection& rSelection) override;
void SetUITestFactory(FactoryFunction pFactoryFunction, void* pUserData)
void SetUITestFactory(const FactoryFunction& pFactoryFunction, void* pUserData)
{
m_pFactoryFunction = pFactoryFunction;
m_pUserData = pUserData;
+1 -2
View File
@@ -533,8 +533,7 @@ void ScDPSaveDimension::WriteToSource( const uno::Reference<uno::XInterface>& xD
uno::Reference<sheet::XLevelsSupplier> xLevSupp(xHiers->getByIndex(nHier), uno::UNO_QUERY);
if ( xLevSupp.is() )
{
uno::Reference<container::XNameAccess> xLevelsName = xLevSupp->getLevels();
xLevels = new ScNameToIndexAccess( xLevelsName );
xLevels = new ScNameToIndexAccess(xLevSupp->getLevels());
nLevCount = xLevels->getCount();
}
@@ -1016,8 +1016,7 @@ void ScShapeChildren::FillShapes(const tools::Rectangle& aPixelPaintRect, const
tools::Rectangle aRect2(Point(0,0), mpAccDoc->GetBoundingBoxOnScreen().GetSize());
aClippedPixelPaintRect = aPixelPaintRect.GetIntersection(aRect2);
}
ScIAccessibleViewForwarder aViewForwarder(mpViewShell, mpAccDoc, aMapMode);
maShapeRanges[nRangeId].maViewForwarder = aViewForwarder;
maShapeRanges[nRangeId].maViewForwarder = ScIAccessibleViewForwarder(mpViewShell, mpAccDoc, aMapMode);
for (const rtl::Reference<SdrObject>& pObj : *pPage)
{
uno::Reference< drawing::XShape > xShape(pObj->getUnoShape(), uno::UNO_QUERY);
+1 -2
View File
@@ -35,8 +35,7 @@ STLPropertySet::~STLPropertySet()
void STLPropertySet::setPropertyDefaultValue( sal_Int32 nHandle, const Any& rValue )
{
STLPropertyMapEntry aEntry( rValue );
maPropertyMap[ nHandle ] = aEntry;
maPropertyMap[nHandle] = STLPropertyMapEntry(rValue);
}
void STLPropertySet::setPropertyValue( sal_Int32 nHandle, const Any& rValue )
+2 -4
View File
@@ -1269,9 +1269,8 @@ void SAL_CALL SdUnoEventsAccess::replaceByName( const OUString& aName, const uno
sal_Int32 nPos = aStrBookmark.lastIndexOf( '#' );
if( nPos >= 0 )
{
OUString aURL = aStrBookmark.subView( 0, nPos+1 )
aStrBookmark = aStrBookmark.subView( 0, nPos+1 )
+ getUiNameFromPageApiNameImpl( aStrBookmark.copy( nPos+1 ) );
aStrBookmark = aURL;
}
}
@@ -1517,9 +1516,8 @@ uno::Any SAL_CALL SdUnoEventsAccess::getByName( const OUString& aName )
sal_Int32 nPos = aString.lastIndexOf( '#' );
if( nPos >= 0 )
{
OUString aURL = aString.subView( 0, nPos+1 ) +
aString = aString.subView( 0, nPos+1 ) +
getPageApiNameFromUiName( aString.copy( nPos+1 ) );
aString = aURL;
}
pProperties->Name = gaStrBookmark;
pProperties->Handle = -1;
+8 -8
View File
@@ -242,14 +242,14 @@ namespace svgio::svgreader
if (SvgUnits::objectBoundingBox == maMaskContentUnits)
{
// mask is object-relative, embed in content transformation
drawinglayer::primitive2d::Primitive2DReference xTransform(
new drawinglayer::primitive2d::TransformPrimitive2D(
basegfx::utils::createScaleTranslateB2DHomMatrix(
aContentRange.getRange(),
aContentRange.getMinimum()),
std::move(aMaskTarget)));
aMaskTarget = drawinglayer::primitive2d::Primitive2DContainer { xTransform };
aMaskTarget = drawinglayer::primitive2d::Primitive2DContainer {
drawinglayer::primitive2d::Primitive2DReference(
new drawinglayer::primitive2d::TransformPrimitive2D(
basegfx::utils::createScaleTranslateB2DHomMatrix(
aContentRange.getRange(),
aContentRange.getMinimum()),
std::move(aMaskTarget)))
};
}
else // userSpaceOnUse
{
+9 -9
View File
@@ -660,15 +660,15 @@ namespace {
}
}
// pack in ObjectInfoPrimitive2D group
drawinglayer::primitive2d::Primitive2DReference xRef(
new drawinglayer::primitive2d::ObjectInfoPrimitive2D(
std::move(rTarget),
aObjectName,
rTitle,
rDesc));
rTarget = drawinglayer::primitive2d::Primitive2DContainer { xRef };
rTarget = drawinglayer::primitive2d::Primitive2DContainer {
// pack in ObjectInfoPrimitive2D group
drawinglayer::primitive2d::Primitive2DReference(
new drawinglayer::primitive2d::ObjectInfoPrimitive2D(
std::move(rTarget),
aObjectName,
rTitle,
rDesc))
};
}
}
}
+3 -2
View File
@@ -165,8 +165,9 @@ void Impl3DMirrorConstructOverlay::SetMirrorAxis(Point aMirrorAxisA, Point aMirr
if(!aMatrixTransform.isIdentity())
{
// embed in transformation group
drawinglayer::primitive2d::Primitive2DReference aTransformPrimitive2D(new drawinglayer::primitive2d::TransformPrimitive2D(aMatrixTransform, std::move(aContent)));
aContent = drawinglayer::primitive2d::Primitive2DContainer { aTransformPrimitive2D };
aContent = drawinglayer::primitive2d::Primitive2DContainer {
drawinglayer::primitive2d::Primitive2DReference(new drawinglayer::primitive2d::TransformPrimitive2D(aMatrixTransform, std::move(aContent)))
};
}
// if we have full overlay from selected objects, embed with 50% transparence, the
+6 -6
View File
@@ -333,12 +333,12 @@ void ViewObjectContact::createPrimitive2DSequence(const DisplayInfo& rDisplayInf
std::make_shared<basegfx::BColorModifier_interpolate>(
aRGBWhite,
0.5);
drawinglayer::primitive2d::Primitive2DReference xReference(
new drawinglayer::primitive2d::ModifiedColorPrimitive2D(
std::move(xRetval),
aBColorModifier));
xRetval = drawinglayer::primitive2d::Primitive2DContainer { xReference };
xRetval = drawinglayer::primitive2d::Primitive2DContainer{
drawinglayer::primitive2d::Primitive2DReference(
new drawinglayer::primitive2d::ModifiedColorPrimitive2D(
std::move(xRetval),
aBColorModifier))
};
}
}
+5 -4
View File
@@ -118,10 +118,11 @@ namespace sdr::overlay
if(bInvert)
{
// embed all in invert primitive
drawinglayer::primitive2d::Primitive2DReference aInvert(
new drawinglayer::primitive2d::InvertPrimitive2D(
std::move(aRetval)));
aRetval = drawinglayer::primitive2d::Primitive2DContainer { aInvert };
aRetval = drawinglayer::primitive2d::Primitive2DContainer {
drawinglayer::primitive2d::Primitive2DReference(
new drawinglayer::primitive2d::InvertPrimitive2D(
std::move(aRetval)))
};
}
else if(OverlayType::Transparent == maLastOverlayType)
{
+6 -7
View File
@@ -196,15 +196,14 @@ SdrDragEntryPrimitive2DSequence::~SdrDragEntryPrimitive2DSequence()
drawinglayer::primitive2d::Primitive2DContainer SdrDragEntryPrimitive2DSequence::createPrimitive2DSequenceInCurrentState(SdrDragMethod& rDragMethod)
{
drawinglayer::primitive2d::Primitive2DReference aTransformPrimitive2D(
new drawinglayer::primitive2d::TransformPrimitive2D(
rDragMethod.getCurrentTransformation(),
drawinglayer::primitive2d::Primitive2DContainer(maPrimitive2DSequence)));
return drawinglayer::primitive2d::Primitive2DContainer { aTransformPrimitive2D };
return drawinglayer::primitive2d::Primitive2DContainer {
drawinglayer::primitive2d::Primitive2DReference(
new drawinglayer::primitive2d::TransformPrimitive2D(
rDragMethod.getCurrentTransformation(),
drawinglayer::primitive2d::Primitive2DContainer(maPrimitive2DSequence)))
};
}
SdrDragEntryPointGlueDrag::SdrDragEntryPointGlueDrag(std::vector< basegfx::B2DPoint >&& rPositions, bool bIsPointDrag)
: maPositions(std::move(rPositions)),
mbIsPointDrag(bIsPointDrag)
+6 -6
View File
@@ -679,12 +679,12 @@ uno::Any SvxShape::GetBitmap( bool bMetaFile /* = false */ ) const
MapMode(MapUnit::Map100thMM)));
// Embed primitives to get them in 100th mm
drawinglayer::primitive2d::Primitive2DReference xEmbedRef(
new drawinglayer::primitive2d::TransformPrimitive2D(
aMapTransform,
std::move(xPrimitives)));
xPrimitives = drawinglayer::primitive2d::Primitive2DContainer { xEmbedRef };
xPrimitives = drawinglayer::primitive2d::Primitive2DContainer {
drawinglayer::primitive2d::Primitive2DReference(
new drawinglayer::primitive2d::TransformPrimitive2D(
aMapTransform,
std::move(xPrimitives)))
};
// Update basegfx::B2DRange aRange, too. Here we have the
// choice of transforming the existing value or get newly by
+3 -2
View File
@@ -2258,8 +2258,9 @@ namespace sdr::contact
if(!xRetval.empty())
{
// create transform primitive
drawinglayer::primitive2d::Primitive2DReference xReference(new drawinglayer::primitive2d::TransformPrimitive2D(aOffsetMatrix, std::move(xRetval)));
xRetval = drawinglayer::primitive2d::Primitive2DContainer { xReference };
xRetval = drawinglayer::primitive2d::Primitive2DContainer {
drawinglayer::primitive2d::Primitive2DReference(new drawinglayer::primitive2d::TransformPrimitive2D(aOffsetMatrix, std::move(xRetval)))
};
}
rVisitor.visit(xRetval);
+1 -2
View File
@@ -3115,8 +3115,7 @@ void SwTabFramePainter::Insert( SwLineEntry& rNew, bool bHori )
SwLineEntrySet* pLineSet = aMapIter != pLine2->end() ? &((*aMapIter).second) : nullptr;
if ( !pLineSet )
{
SwLineEntrySet aNewSet;
(*pLine2)[ nKey ] = aNewSet;
(*pLine2)[nKey] = SwLineEntrySet();
pLineSet = &(*pLine2)[ nKey ];
}
SwLineEntrySet::iterator aIter = pLineSet->begin();
+1 -3
View File
@@ -184,12 +184,10 @@ ErrCode SwXMLTextBlocks::GetMacroTable( sal_uInt16 nIdx,
if ( !xDocStream.is() )
return ERR_SWG_READ_ERROR;
uno::Reference<io::XInputStream> xInputStream = xDocStream->getInputStream();
// prepare ParserInputSource
xml::sax::InputSource aParserInput;
aParserInput.sSystemId = m_aName;
aParserInput.aInputStream = xInputStream;
aParserInput.aInputStream = xDocStream->getInputStream();
// get service factory
uno::Reference< uno::XComponentContext > xContext =
+1 -3
View File
@@ -1740,9 +1740,7 @@ void SwXNumberingRules::SetPropertiesToNumFormat(
static_cast<const SvxFontListItem* >(pLclDocShell
->GetItem( SID_ATTR_CHAR_FONTLIST ));
const FontList* pList = pFontListItem->GetFontList();
FontMetric aFontMetric = pList->Get(
sBulletFontName, WEIGHT_NORMAL, ITALIC_NONE);
vcl::Font aFont(aFontMetric);
vcl::Font aFont(pList->Get(sBulletFontName, WEIGHT_NORMAL, ITALIC_NONE));
aFormat.SetBulletFont(&aFont);
}
else if (pBulletFontName)
+1 -1
View File
@@ -427,7 +427,7 @@ test::AccessibleTestBase::awaitDialog(const std::u16string_view name,
bool bAutoClose)
: mbWaitingForDialog(true)
, msName(name)
, mCallback(callback)
, mCallback(std::move(callback))
, mbAutoClose(bAutoClose)
, maTimeoutTimer("workaround timer if we don't catch WindowActivate")
, maIdleHandler("runs user callback in idle time")
@@ -110,10 +110,7 @@ void ContentResultSetWrapper::impl_initPropertySetInfo(std::unique_lock<std::mut
if( !m_xPropertySetOrigin.is() )
return;
Reference< XPropertySetInfo > xOrig =
m_xPropertySetOrigin->getPropertySetInfo();
m_xPropertySetInfo = xOrig;
m_xPropertySetInfo = m_xPropertySetOrigin->getPropertySetInfo();
}
void ContentResultSetWrapper::impl_EnsureNotDisposed(std::unique_lock<std::mutex>& /*rGuard*/)
+2 -3
View File
@@ -1752,11 +1752,10 @@ void Content::transfer(
// 1) Create new child content.
OUString aType = xSource->isFolder()
ucb::ContentInfo aContentInfo;
aContentInfo.Type = xSource->isFolder()
? getContentType( m_aUri.getScheme(), true )
: getContentType( m_aUri.getScheme(), false );
ucb::ContentInfo aContentInfo;
aContentInfo.Type = aType;
aContentInfo.Attributes = 0;
// Note: The static cast is okay here, because its sure that
@@ -45,12 +45,12 @@ public:
void SetTableManager( TableManager* pTableManager )
{
m_pTableManager = pTableManager;
};
}
void SetProperties( PropertyMapPtr pProperties )
void SetProperties(const PropertyMapPtr& pProperties)
{
m_pCurrentProperties = pProperties;
};
}
void SetInteropGrabBag(std::vector<css::beans::PropertyValue>& rValue);
+1 -3
View File
@@ -204,9 +204,7 @@ bool XMLTextFieldImportContext::CreateField(
Reference<XInterface> xIfc = xFactory->createInstance(rServiceName);
if( xIfc.is() )
{
Reference<XPropertySet> xTmp( xIfc, UNO_QUERY );
xField = xTmp;
xField.set(xIfc, UNO_QUERY);
} else {
return false; // can't create instance
}