commit 34bfad7f644e0c246caed6a30fa306143e365701
Author: Georg Baum <[email protected]>
Date: Sat Oct 10 21:44:08 2015 +0200
Remove C-style casts found by cppcheck
diff --git a/src/frontends/qt4/GuiToc.cpp b/src/frontends/qt4/GuiToc.cpp
index a18fbba..7a64ba4 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<GuiView *>(parent())->updateToolbars();
is_closing_ = false;
}
diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp
index 5148e75..f8fa48c 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;