From 34bfad7f644e0c246caed6a30fa306143e365701 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sat, 10 Oct 2015 21:44:08 +0200 Subject: [PATCH] Remove C-style casts found by cppcheck --- src/frontends/qt4/GuiToc.cpp | 2 +- src/frontends/qt4/GuiView.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiToc.cpp b/src/frontends/qt4/GuiToc.cpp index a18fbba03a..7a64ba4969 100644 --- a/src/frontends/qt4/GuiToc.cpp +++ b/src/frontends/qt4/GuiToc.cpp @@ -75,7 +75,7 @@ void GuiToc::enableView(bool /*enable*/) void GuiToc::closeEvent(QCloseEvent * /*event*/) { is_closing_ = true; - ((GuiView *)parent())->updateToolbars(); + static_cast(parent())->updateToolbars(); is_closing_ = false; } diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 5148e75c54..f8fa48cd52 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1378,7 +1378,7 @@ GuiWorkArea * GuiView::workArea(Buffer & buffer) { if (currentWorkArea() && ¤tWorkArea()->bufferView().buffer() == &buffer) - return (GuiWorkArea *) currentWorkArea(); + return currentWorkArea(); if (TabWorkArea * twa = d.currentTabWorkArea()) return twa->workArea(buffer); return 0;