loplugin:constparams in sd..svtools
Change-Id: I50b864ffc4ed13ba801af46815988bf568b83d2e Reviewed-on: https://gerrit.libreoffice.org/66832 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -77,7 +77,7 @@ public:
|
||||
{
|
||||
return mShows.empty() ? nullptr : mShows[mnCurPos].get();
|
||||
}
|
||||
void erase(SdCustomShow* p)
|
||||
void erase(const SdCustomShow* p)
|
||||
{
|
||||
auto it = std::find_if(mShows.begin(), mShows.end(),
|
||||
[&] (std::unique_ptr<SdCustomShow> const &i) { return i.get() == p; });
|
||||
|
@@ -1878,7 +1878,7 @@ void SdOOXMLExportTest2::testTdf118836()
|
||||
xDocShRef->DoClose();
|
||||
}
|
||||
|
||||
static double getAdjustmentValue( uno::Reference<beans::XPropertySet>& xSet )
|
||||
static double getAdjustmentValue( const uno::Reference<beans::XPropertySet>& xSet )
|
||||
{
|
||||
auto aGeomPropSeq = xSet->getPropertyValue( "CustomShapeGeometry" )
|
||||
.get<uno::Sequence<beans::PropertyValue>>();
|
||||
@@ -1903,7 +1903,7 @@ static double getAdjustmentValue( uno::Reference<beans::XPropertySet>& xSet )
|
||||
return -1.0;
|
||||
}
|
||||
|
||||
static bool getScaleXValue(uno::Reference<beans::XPropertySet>& xSet)
|
||||
static bool getScaleXValue(const uno::Reference<beans::XPropertySet>& xSet)
|
||||
{
|
||||
bool bScaleX = false;
|
||||
|
||||
|
@@ -907,7 +907,7 @@ void CustomAnimationPane::UpdateLook()
|
||||
}
|
||||
}
|
||||
|
||||
static void addValue( std::unique_ptr<STLPropertySet>& pSet, sal_Int32 nHandle, const Any& rValue )
|
||||
static void addValue( const std::unique_ptr<STLPropertySet>& pSet, sal_Int32 nHandle, const Any& rValue )
|
||||
{
|
||||
switch( pSet->getPropertyState( nHandle ) )
|
||||
{
|
||||
|
@@ -227,7 +227,7 @@ void SdPageObjsTLB::SetSdNavigator(SdNavigatorWin* pNavigator)
|
||||
mpNavigator = pNavigator;
|
||||
}
|
||||
|
||||
void SdPageObjsTLB::SetViewFrame( SfxViewFrame* pViewFrame )
|
||||
void SdPageObjsTLB::SetViewFrame( const SfxViewFrame* pViewFrame )
|
||||
{
|
||||
sd::ViewShellBase* pBase = sd::ViewShellBase::GetViewShellBase(pViewFrame);
|
||||
const css::uno::Reference< css::frame::XFrame > xFrame = pBase->GetMainViewShell()->GetViewFrame()->GetFrame().GetFrameInterface();
|
||||
|
@@ -189,7 +189,7 @@ public:
|
||||
virtual void KeyInput( const KeyEvent& rKEvt ) override;
|
||||
void MouseButtonDown(const MouseEvent& rMEvt) override;
|
||||
|
||||
void SetViewFrame( SfxViewFrame* pViewFrame );
|
||||
void SetViewFrame( const SfxViewFrame* pViewFrame );
|
||||
|
||||
void Fill( const SdDrawDocument*, bool bAllPages, const OUString& rDocName );
|
||||
void Fill( const SdDrawDocument*, SfxMedium* pSfxMedium, const OUString& rDocName );
|
||||
|
@@ -272,7 +272,7 @@ public:
|
||||
pDrawingArea->get_text_height() * 9);
|
||||
}
|
||||
|
||||
void calccols(vcl::RenderContext& rRenderContext);
|
||||
void calccols(const vcl::RenderContext& rRenderContext);
|
||||
void SelectSymbol(sal_uInt16 nSymbol);
|
||||
sal_uInt16 GetSelectSymbol() const { return nSelectSymbol; }
|
||||
void SetSymbolSet(const SymbolPtrVec_t& rSymbolSet);
|
||||
|
@@ -1065,7 +1065,7 @@ bool SmShowSymbolSet::KeyInput(const KeyEvent& rKEvt)
|
||||
return true;
|
||||
}
|
||||
|
||||
void SmShowSymbolSet::calccols(vcl::RenderContext& rRenderContext)
|
||||
void SmShowSymbolSet::calccols(const vcl::RenderContext& rRenderContext)
|
||||
{
|
||||
// Height of 16pt in pixels (matching 'aOutputSize')
|
||||
nLen = rRenderContext.LogicToPixel(Size(0, 16), MapMode(MapUnit::MapPoint)).Height();
|
||||
|
@@ -483,7 +483,7 @@ public:
|
||||
return (*pImpl);
|
||||
}
|
||||
|
||||
static storeError guard (std::shared_ptr<PageData> & rxPage, sal_uInt32 nAddr)
|
||||
static storeError guard (std::shared_ptr<PageData> const & rxPage, sal_uInt32 nAddr)
|
||||
{
|
||||
PageData * pHead = rxPage.get();
|
||||
if (!pHead)
|
||||
|
@@ -69,7 +69,7 @@ namespace
|
||||
* Pre-calculates glyph items for rText on rRenderContext. Subsequent calls
|
||||
* avoid the calculation and just return a pointer to rTextGlyphs.
|
||||
*/
|
||||
SalLayoutGlyphs* lcl_GetRulerTextGlyphs(vcl::RenderContext& rRenderContext, const OUString& rText,
|
||||
SalLayoutGlyphs* lcl_GetRulerTextGlyphs(const vcl::RenderContext& rRenderContext, const OUString& rText,
|
||||
SalLayoutGlyphs& rTextGlyphs)
|
||||
{
|
||||
if (rTextGlyphs.IsValid())
|
||||
|
Reference in New Issue
Block a user