summaryrefslogtreecommitdiff
path: root/svx/source/sdr
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-26 14:11:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-27 08:03:26 +0200
commit8ce64dbb3d7875c00963ae257d53f2b7b58fc4ad (patch)
tree070a1a2f11d553511c24423290829713c1f2fba6 /svx/source/sdr
parent781a30e938c58c4d91d08f8c6f9e3f8745682d72 (diff)
loplugin:constparams in svx
and fix a bug in the plugin itself when calling operator's like the one on std::function<> Change-Id: I1617607107eeff06785c1841f69e13ad2926218e Reviewed-on: https://gerrit.libreoffice.org/40446 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/sdr')
-rw-r--r--svx/source/sdr/contact/viewobjectcontactofgraphic.cxx2
-rw-r--r--svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx12
2 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx b/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx
index 232abcf5f622..66592354a9cc 100644
--- a/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx
+++ b/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx
@@ -216,7 +216,7 @@ namespace sdr
// This is the call from the destructor of the asynch graphic loading event.
// No one else has to call this. It is needed to let this object forget about
// the event. The parameter allows checking for the correct event.
- void ViewObjectContactOfGraphic::forgetAsynchGraphicLoadingEvent(sdr::event::AsynchGraphicLoadingEvent* pEvent)
+ void ViewObjectContactOfGraphic::forgetAsynchGraphicLoadingEvent(sdr::event::AsynchGraphicLoadingEvent const * pEvent)
{
if(mpAsynchLoadEvent)
{
diff --git a/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx b/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx
index d060de4bc2ac..9f5e8debaf24 100644
--- a/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx
+++ b/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx
@@ -594,7 +594,7 @@ namespace sdr { namespace contact {
/// creates an XControl for the given device and SdrUnoObj
static bool
createControlForDevice(
- IPageViewAccess& _rPageView,
+ IPageViewAccess const & _rPageView,
const OutputDevice& _rDevice,
const SdrUnoObj& _rUnoObject,
const basegfx::B2DHomMatrix& _rInitialViewTransformation,
@@ -700,7 +700,7 @@ namespace sdr { namespace contact {
We're not disposed.
*/
static void impl_adjustControlVisibilityToLayerVisibility_throw( const ControlHolder& _rxControl, const SdrUnoObj& _rUnoObject,
- IPageViewAccess& _rPageView, bool _bIsCurrentlyVisible, bool _bForce );
+ IPageViewAccess const & _rPageView, bool _bIsCurrentlyVisible, bool _bForce );
/** starts or stops listening at various aspects of our control
@@ -757,7 +757,7 @@ namespace sdr { namespace contact {
/** ensures that we have a control for the given PageView/OutputDevice
*/
bool impl_ensureControl_nothrow(
- IPageViewAccess& _rPageView,
+ IPageViewAccess const & _rPageView,
const OutputDevice& _rDevice,
const basegfx::B2DHomMatrix& _rInitialViewTransformation
);
@@ -988,7 +988,7 @@ namespace sdr { namespace contact {
}
- bool ViewObjectContactOfUnoControl_Impl::impl_ensureControl_nothrow( IPageViewAccess& _rPageView, const OutputDevice& _rDevice,
+ bool ViewObjectContactOfUnoControl_Impl::impl_ensureControl_nothrow( IPageViewAccess const & _rPageView, const OutputDevice& _rDevice,
const basegfx::B2DHomMatrix& _rInitialViewTransformation )
{
if ( m_bCreatingControl )
@@ -1065,7 +1065,7 @@ namespace sdr { namespace contact {
}
- bool ViewObjectContactOfUnoControl_Impl::createControlForDevice( IPageViewAccess& _rPageView,
+ bool ViewObjectContactOfUnoControl_Impl::createControlForDevice( IPageViewAccess const & _rPageView,
const OutputDevice& _rDevice, const SdrUnoObj& _rUnoObject, const basegfx::B2DHomMatrix& _rInitialViewTransformation,
const basegfx::B2DHomMatrix& _rInitialZoomNormalization, ControlHolder& _out_rControl )
{
@@ -1167,7 +1167,7 @@ namespace sdr { namespace contact {
void ViewObjectContactOfUnoControl_Impl::impl_adjustControlVisibilityToLayerVisibility_throw( const ControlHolder& _rControl,
- const SdrUnoObj& _rUnoObject, IPageViewAccess& _rPageView, bool _bIsCurrentlyVisible, bool _bForce )
+ const SdrUnoObj& _rUnoObject, IPageViewAccess const & _rPageView, bool _bIsCurrentlyVisible, bool _bForce )
{
// in design mode, there is no problem with the visibility: The XControl is hidden by
// default, and the Drawing Layer will simply not call our paint routine, if we're in