]> git.lyx.org Git - features.git/commitdiff
Remove C-style casts found by cppcheck
authorGeorg Baum <baum@lyx.org>
Sat, 10 Oct 2015 19:44:08 +0000 (21:44 +0200)
committerGeorg Baum <baum@lyx.org>
Sat, 10 Oct 2015 19:44:08 +0000 (21:44 +0200)
src/frontends/qt4/GuiToc.cpp
src/frontends/qt4/GuiView.cpp

index a18fbba03aa3ad5da992bc5ac01b640d2d782613..7a64ba496909c65d5056eb3b8c708cb254b3062f 100644 (file)
@@ -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;
 }
 
index 5148e75c541c22880c398f117964740832577522..f8fa48cd522d077148b4900a8e46ceef71660d85 100644 (file)
@@ -1378,7 +1378,7 @@ GuiWorkArea * GuiView::workArea(Buffer & buffer)
 {
        if (currentWorkArea()
                && &currentWorkArea()->bufferView().buffer() == &buffer)
-               return (GuiWorkArea *) currentWorkArea();
+               return currentWorkArea();
        if (TabWorkArea * twa = d.currentTabWorkArea())
                return twa->workArea(buffer);
        return 0;