Fix lgtm issues

This commit is contained in:
Ingo Weyrich
2019-11-02 00:18:48 +01:00
parent f02f5c4a69
commit afeca7f5f9
3 changed files with 9 additions and 9 deletions

View File

@@ -653,8 +653,8 @@ void RTWindow::remEditorPanel (EditorPanel* ep)
set_title_decorated ("");
} else {
EditorPanel* ep = static_cast<EditorPanel*> (mainNB->get_nth_page (mainNB->get_current_page()));
set_title_decorated (ep->getFileName());
const EditorPanel* lep = static_cast<EditorPanel*> (mainNB->get_nth_page (mainNB->get_current_page()));
set_title_decorated (lep->getFileName());
}
// TODO: ask what to do: close & apply, close & apply selection, close & revert, cancel