Skip to content

Commit

Permalink
fix: redundant cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Jul 1, 2024
1 parent 964a1a2 commit 92c4e4e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/controllers/commands/builtin/Misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,12 +401,11 @@ QString clearmessages(const CommandContext &ctx)
{
(void)ctx;

auto *currentPage =
dynamic_cast<SplitContainer *>(getIApp()
->getWindows()
->getLastSelectedWindow()
->getNotebook()
.getSelectedPage());
auto *currentPage = getIApp()
->getWindows()
->getLastSelectedWindow()
->getNotebook()
.getSelectedPage();

if (auto *split = currentPage->getSelectedSplit())
{
Expand Down

0 comments on commit 92c4e4e

Please sign in to comment.