Remove C-style casts found by cppcheck

This commit is contained in:
Georg Baum 2015-10-10 21:44:08 +02:00
parent fd5cfc5101
commit 34bfad7f64
2 changed files with 2 additions and 2 deletions

View 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;
}

View 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;