]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiToc.cpp
Remove C-style casts found by cppcheck
[features.git] / src / frontends / qt4 / GuiToc.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;
 }