From: Georg Baum Date: Sat, 10 Oct 2015 19:44:08 +0000 (+0200) Subject: Remove C-style casts found by cppcheck X-Git-Tag: 2.2.0alpha1~243 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=34bfad7f644e0c246caed6a30fa306143e365701;p=features.git Remove C-style casts found by cppcheck --- 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;