summaryrefslogtreecommitdiffstats
path: root/forms
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-12 15:07:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-12 19:57:24 +0200
commitf7a86c5cdf4323c99d26512bf78de7f7c380667d (patch)
treef299cbf4ca27b5db0e81a90cc6551469fa280e63 /forms
parenttdf#137810 sw: fix SwXNumberingRules setting CharStyleName (diff)
downloadcore-f7a86c5cdf4323c99d26512bf78de7f7c380667d.tar.gz
core-f7a86c5cdf4323c99d26512bf78de7f7c380667d.zip
simplify the vcl<->toolkit connection
No need to store two different pointers and hide the underlying class behind an UNO interface Change-Id: I72c55e912caa9eae1cffa6c9d1b1d480e5668d40 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115496 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms')
-rw-r--r--forms/source/richtext/richtextcontrol.cxx2
-rw-r--r--forms/source/solar/component/navbarcontrol.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/richtext/richtextcontrol.cxx b/forms/source/richtext/richtextcontrol.cxx
index 45e898b8ed13..def1ea106bbf 100644
--- a/forms/source/richtext/richtextcontrol.cxx
+++ b/forms/source/richtext/richtextcontrol.cxx
@@ -272,7 +272,7 @@ namespace frm
VclPtrInstance<RichTextControl> pRichTextControl( pEngine, _pParentWindow, _nStyle, nullptr, pPeer.get() );
// some knittings
- pRichTextControl->SetComponentInterface( pPeer );
+ pRichTextControl->SetComponentInterface( pPeer.get() );
// outta here
return pPeer;
diff --git a/forms/source/solar/component/navbarcontrol.cxx b/forms/source/solar/component/navbarcontrol.cxx
index 14e9c27ce74f..5853ae148956 100644
--- a/forms/source/solar/component/navbarcontrol.cxx
+++ b/forms/source/solar/component/navbarcontrol.cxx
@@ -216,7 +216,7 @@ namespace frm
// some knittings
pNavBar->setDispatcher( pPeer.get() );
- pNavBar->SetComponentInterface( pPeer );
+ pNavBar->SetComponentInterface( pPeer.get() );
// we want a faster repeating rate for the slots in this
// toolbox