summaryrefslogtreecommitdiff
path: root/vcl/jsdialog/executor.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-03-08 12:03:35 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-03-08 19:54:15 +0000
commitfa0f8dd9d3dcbbee2d8c23341981635f9c55e55f (patch)
treee0c3e2361ae62049b8ae0f756e667c6764e1a978 /vcl/jsdialog/executor.cxx
parentc1af1b9c555480305862336954ceefe14865e27d (diff)
cid#1521852 Unchecked dynamic_cast
Change-Id: Iec5f58101ca65665d6782e769a5a58765c9e6d37 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148469 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/jsdialog/executor.cxx')
-rw-r--r--vcl/jsdialog/executor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/jsdialog/executor.cxx b/vcl/jsdialog/executor.cxx
index be17d4ef353c..313661557893 100644
--- a/vcl/jsdialog/executor.cxx
+++ b/vcl/jsdialog/executor.cxx
@@ -143,7 +143,7 @@ bool ExecuteAction(const std::string& nWindowId, const OString& rWidget, StringM
}
else if (sAction == "toggle")
{
- LOKTrigger::trigger_toggled(*dynamic_cast<weld::Toggleable*>(pWidget));
+ LOKTrigger::trigger_toggled(dynamic_cast<weld::Toggleable&>(*pWidget));
return true;
}
}