summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-30 09:40:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-30 11:24:33 +0200
commit3b8e53f66ffd4d631a850fe76250124dc4a195c3 (patch)
tree2613882a4876f0a66324b7e29e61c46b3ec451b0 /sd
parentd242a19dbdd53b7ae0b6a6ceacca6aa1b6ac54a9 (diff)
loplugin:constparams improve handling of pointer params
Change-Id: I4c0002e72703eded435bfe4985f5b0121bf8524b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122843 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/accessibility/AccessibleViewForwarder.cxx2
-rw-r--r--sd/source/ui/dlg/sdtreelb.cxx2
-rw-r--r--sd/source/ui/inc/AccessibleViewForwarder.hxx2
-rw-r--r--sd/source/ui/inc/sdtreelb.hxx2
-rw-r--r--sd/source/ui/inc/slideshow.hxx2
-rw-r--r--sd/source/ui/slideshow/slideshow.cxx2
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx6
7 files changed, 9 insertions, 9 deletions
diff --git a/sd/source/ui/accessibility/AccessibleViewForwarder.cxx b/sd/source/ui/accessibility/AccessibleViewForwarder.cxx
index 9cebb322f006..09225e27ff06 100644
--- a/sd/source/ui/accessibility/AccessibleViewForwarder.cxx
+++ b/sd/source/ui/accessibility/AccessibleViewForwarder.cxx
@@ -32,7 +32,7 @@ namespace accessibility
May change in the future.
*/
-AccessibleViewForwarder::AccessibleViewForwarder(SdrPaintView* pView, OutputDevice& rDevice)
+AccessibleViewForwarder::AccessibleViewForwarder(SdrPaintView* pView, const OutputDevice& rDevice)
: mpView(pView)
, mnWindowId(0)
{
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx
index 8e87e73eb040..e181c58accdb 100644
--- a/sd/source/ui/dlg/sdtreelb.cxx
+++ b/sd/source/ui/dlg/sdtreelb.cxx
@@ -524,7 +524,7 @@ sal_Int8 SdPageObjsTLVDropTarget::ExecuteDrop( const ExecuteDropEvent& rEvt )
void SdPageObjsTLV::AddShapeToTransferable (
SdTransferable& rTransferable,
- SdrObject& rObject) const
+ const SdrObject& rObject) const
{
std::unique_ptr<TransferableObjectDescriptor> pObjectDescriptor(new TransferableObjectDescriptor);
bool bIsDescriptorFillingPending (true);
diff --git a/sd/source/ui/inc/AccessibleViewForwarder.hxx b/sd/source/ui/inc/AccessibleViewForwarder.hxx
index 974fdbf93ca3..c791921e6f17 100644
--- a/sd/source/ui/inc/AccessibleViewForwarder.hxx
+++ b/sd/source/ui/inc/AccessibleViewForwarder.hxx
@@ -42,7 +42,7 @@ class AccessibleViewForwarder final : public IAccessibleViewForwarder
public:
//===== internal ========================================================
- AccessibleViewForwarder(SdrPaintView* pView, OutputDevice& rDevice);
+ AccessibleViewForwarder(SdrPaintView* pView, const OutputDevice& rDevice);
virtual ~AccessibleViewForwarder() override;
diff --git a/sd/source/ui/inc/sdtreelb.hxx b/sd/source/ui/inc/sdtreelb.hxx
index e57bcb3a367e..57a98dabfb47 100644
--- a/sd/source/ui/inc/sdtreelb.hxx
+++ b/sd/source/ui/inc/sdtreelb.hxx
@@ -315,7 +315,7 @@ public:
*/
void AddShapeToTransferable (
SdTransferable& rTransferable,
- SdrObject& rObject) const;
+ const SdrObject& rObject) const;
/** return selected entries
nDepth == 0 -> pages
diff --git a/sd/source/ui/inc/slideshow.hxx b/sd/source/ui/inc/slideshow.hxx
index 68fe77125647..b6d199bdda5e 100644
--- a/sd/source/ui/inc/slideshow.hxx
+++ b/sd/source/ui/inc/slideshow.hxx
@@ -100,7 +100,7 @@ public:
/// returns true if there is a running presentation inside the given ViewShell
/// returns false even if there is a running presentation but in another ViewShell
- static bool IsRunning( ViewShell& rViewShell );
+ static bool IsRunning( const ViewShell& rViewShell );
// helper api
diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx
index ac63931689b5..9f90799f8ddd 100644
--- a/sd/source/ui/slideshow/slideshow.cxx
+++ b/sd/source/ui/slideshow/slideshow.cxx
@@ -211,7 +211,7 @@ bool SlideShow::IsRunning( ViewShellBase const & rBase )
return xSlideShow.is() && xSlideShow->isRunning();
}
-bool SlideShow::IsRunning( ViewShell& rViewShell )
+bool SlideShow::IsRunning( const ViewShell& rViewShell )
{
rtl::Reference< SlideShow > xSlideShow( GetSlideShow( rViewShell.GetViewShellBase() ) );
return xSlideShow.is() && xSlideShow->isRunning() && (xSlideShow->mxController->getViewShell() == &rViewShell);
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 632be3183bef..d064f6434c98 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -1494,7 +1494,7 @@ class ImplRenderPaintProc : public sdr::contact::ViewObjectContactRedirector
SdrPageView* pSdrPageView;
vcl::PDFExtOutDevData* pPDFExtOutDevData;
- vcl::PDFWriter::StructElement ImplBegStructureTag( SdrObject& rObject );
+ vcl::PDFWriter::StructElement ImplBegStructureTag( const SdrObject& rObject );
public:
bool IsVisible ( const SdrObject* pObj ) const;
@@ -1711,7 +1711,7 @@ static void ImplPDFExportShapeInteraction( const uno::Reference< drawing::XShape
}
}
-vcl::PDFWriter::StructElement ImplRenderPaintProc::ImplBegStructureTag( SdrObject& rObject )
+vcl::PDFWriter::StructElement ImplRenderPaintProc::ImplBegStructureTag( const SdrObject& rObject )
{
vcl::PDFWriter::StructElement eElement(vcl::PDFWriter::NonStructElement);
@@ -1729,7 +1729,7 @@ vcl::PDFWriter::StructElement ImplRenderPaintProc::ImplBegStructureTag( SdrObjec
eElement = vcl::PDFWriter::Heading;
else if ( nIdentifier == OBJ_OUTLINETEXT )
eElement = vcl::PDFWriter::Division;
- else if ( !bIsTextObj || !static_cast<SdrTextObj&>(rObject).HasText() )
+ else if ( !bIsTextObj || !static_cast<const SdrTextObj&>(rObject).HasText() )
eElement = vcl::PDFWriter::Figure;
}
}