diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-02-10 09:51:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-02-10 15:45:29 +0100 |
commit | 38ed6b173ce3cc11b3b4f99344e75edaf6ab735d (patch) | |
tree | f0d28aa83778406a82e85b31868dbf2b99b66574 /vcl | |
parent | f68f25b6c9851e30a93ee0f0da1f0c59121e0f3b (diff) |
cid#1472858 Unchecked dynamic_cast
Change-Id: I3103719f6184efb7b9ecfb6d589d6757449814cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110693
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/jsdialog/executor.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/vcl/jsdialog/executor.cxx b/vcl/jsdialog/executor.cxx index 53f70630fe1c..8c76e77d8b37 100644 --- a/vcl/jsdialog/executor.cxx +++ b/vcl/jsdialog/executor.cxx @@ -37,12 +37,8 @@ StringMap jsonToStringMap(const char* pJSON) void SendFullUpdate(sal_uInt64 nWindowId, const OString& rWidget) { weld::Widget* pWidget = JSInstanceBuilder::FindWeldWidgetsMap(nWindowId, rWidget); - - if (pWidget != nullptr) - { - auto pJSWidget = dynamic_cast<BaseJSWidget*>(pWidget); + if (auto pJSWidget = dynamic_cast<BaseJSWidget*>(pWidget)) pJSWidget->sendFullUpdate(); - } } bool ExecuteAction(sal_uInt64 nWindowId, const OString& rWidget, StringMap& rData) |