Commit 887a3491 authored by Murray Cumming's avatar Murray Cumming
Browse files

Remove redundant casts to AppWindow.

Noticed by the IntelliJ CLion inspections.
parent b3017321
......@@ -1736,7 +1736,7 @@ void Frame_Glom::on_developer_dialog_hide()
#ifndef GLOM_ENABLE_CLIENT_ONLY
void Frame_Glom::on_connection_initialize_progress()
{
AppWindow *app = dynamic_cast<AppWindow*>(AppWindow::get_appwindow());
auto *app = AppWindow::get_appwindow();
if(app)
app->pulse_progress_message();
}
......@@ -1744,14 +1744,14 @@ void Frame_Glom::on_connection_initialize_progress()
void Frame_Glom::on_connection_startup_progress()
{
AppWindow *app = dynamic_cast<AppWindow*>(AppWindow::get_appwindow());
auto *app = AppWindow::get_appwindow();
if(app)
app->pulse_progress_message();
}
void Frame_Glom::on_connection_cleanup_progress()
{
AppWindow *app = dynamic_cast<AppWindow*>(AppWindow::get_appwindow());
auto *app = AppWindow::get_appwindow();
if(app)
app->pulse_progress_message();
}
......
......@@ -28,7 +28,7 @@ namespace Glom
{
ShowProgressMessage::ShowProgressMessage(const Glib::ustring& message)
: m_app(dynamic_cast<AppWindow*>(AppWindow::get_appwindow())),
: m_app(AppWindow::get_appwindow()),
m_message(message)
{
g_return_if_fail(m_app);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment