summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-10-06 09:19:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-10-06 11:56:12 +0200
commit2dfe1726d5262820c910d810b955ea73d3c7ae95 (patch)
tree9514593577c5a22dd019be639494556bd28c4051 /svtools
parent0ed940e3eb87c7048a1a8e6cfda14e7cef85d007 (diff)
CellController always controls something derived from svt::ControlBase
Change-Id: I051c2d0cf134502943bda5aa0bad9b04163c221f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123129 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/brwbox/editbrowsebox.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/svtools/source/brwbox/editbrowsebox.cxx b/svtools/source/brwbox/editbrowsebox.cxx
index 90b970615eb7..c9267119ffda 100644
--- a/svtools/source/brwbox/editbrowsebox.cxx
+++ b/svtools/source/brwbox/editbrowsebox.cxx
@@ -1227,23 +1227,19 @@ namespace svt
Controller()->resume();
}
-
- CellController::CellController(Control* pW)
- :pWindow( pW )
- ,bSuspended( true )
+ CellController::CellController(ControlBase* pW)
+ : pWindow(pW)
+ , bSuspended( true )
{
DBG_ASSERT(pWindow, "CellController::CellController: missing the window!");
DBG_ASSERT(!pWindow->IsVisible(), "CellController::CellController: window should not be visible!");
}
-
CellController::~CellController()
{
-
}
-
void CellController::suspend( )
{
DBG_ASSERT( bSuspended == !GetWindow().IsVisible(), "CellController::suspend: inconsistence!" );