mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Remove C-style casts found by cppcheck
This commit is contained in:
parent
fd5cfc5101
commit
34bfad7f64
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user