diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-02 14:32:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-03 07:54:12 +0100 |
commit | 6299c8cae923198c55d47320fa8a89bbcd5b0f2b (patch) | |
tree | 019ed8f1d754f92fb72c9ae4639ab671bae97018 /desktop | |
parent | Avoid float-cast-overflow (diff) | |
download | core-6299c8cae923198c55d47320fa8a89bbcd5b0f2b.tar.gz core-6299c8cae923198c55d47320fa8a89bbcd5b0f2b.zip |
loplugin:constparams
Change-Id: Iebeb531fad5cc819b536788925cf8508737198b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124599
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/inc/lib/init.hxx | 2 | ||||
-rw-r--r-- | desktop/source/lib/init.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop/inc/lib/init.hxx b/desktop/inc/lib/init.hxx index 337c0f23340c..b8918729cff9 100644 --- a/desktop/inc/lib/init.hxx +++ b/desktop/inc/lib/init.hxx @@ -175,7 +175,7 @@ namespace desktop { queue_type2::reverse_iterator toQueue2(queue_type1::reverse_iterator); void queue(const int type, CallbackData& data); void enqueueUpdatedTypes(); - void enqueueUpdatedType( int type, SfxViewShell* sourceViewShell, int viewId ); + void enqueueUpdatedType( int type, const SfxViewShell* sourceViewShell, int viewId ); /** we frequently want to scan the queue, and mostly when we do so, we only care about the element type so we split the queue in 2 to make the scanning cache friendly. */ diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 4ab45c346697..fe6fd88b1c7b 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2189,7 +2189,7 @@ void CallbackFlushHandler::enqueueUpdatedTypes() } } -void CallbackFlushHandler::enqueueUpdatedType( int type, SfxViewShell* viewShell, int viewId ) +void CallbackFlushHandler::enqueueUpdatedType( int type, const SfxViewShell* viewShell, int viewId ) { OString payload = viewShell->getLOKPayload( type, viewId ); if(payload.isEmpty()) |