summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-03-09 12:08:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-03-09 17:46:29 +0100
commit3dfe1df0f1084b06c7d4c95df387253b2e058cd6 (patch)
tree96e6f512c0a2f4a6d5c02a9fd77afcb0a5dab3e8 /vcl
parentdb999ddee7a890390f66d7e34906066c8bf178da (diff)
this should be dynamic_cast
accidentally broken with commit e4e80ed313882f9ea1b309054e5aa3e839586516 Date: Sat Mar 6 20:40:58 2021 +0200 loplugin:staticdynamic now with extra salt Change-Id: If5946d7f65eb51c9785e7ad2e6def0ebd56fd9cc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112198 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/edit/textundo.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/edit/textundo.cxx b/vcl/source/edit/textundo.cxx
index e7c2fe1c76aa..89dd0c50f316 100644
--- a/vcl/source/edit/textundo.cxx
+++ b/vcl/source/edit/textundo.cxx
@@ -273,7 +273,7 @@ void TextUndoInsertChars::Redo()
bool TextUndoInsertChars::Merge( SfxUndoAction* pNextAction )
{
- TextUndoInsertChars* pNext = static_cast<TextUndoInsertChars*>(pNextAction);
+ TextUndoInsertChars* pNext = dynamic_cast<TextUndoInsertChars*>(pNextAction);
if ( !pNext )
return false;