From 7912649b5bdb99fec50621ab38b2dd465ce73e95 Mon Sep 17 00:00:00 2001 From: eidheim Date: Fri, 18 Mar 2016 10:38:23 +0100 Subject: [PATCH] Replaced c-style cast with reinterpret_cast in dialogs.cc --- src/dialogs.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dialogs.cc b/src/dialogs.cc index f9b6b92..832c5be 100644 --- a/src/dialogs.cc +++ b/src/dialogs.cc @@ -40,14 +40,14 @@ std::string Dialog::gtk_dialog(const boost::filesystem::path &path, const std::s dialog.set_position(Gtk::WindowPosition::WIN_POS_CENTER_ON_PARENT); if(title=="Save File As") - gtk_file_chooser_set_filename((GtkFileChooser*)dialog.gobj(), path.string().c_str()); + gtk_file_chooser_set_filename(reinterpret_cast(dialog.gobj()), path.string().c_str()); else if(!path.empty()) - gtk_file_chooser_set_current_folder((GtkFileChooser*)dialog.gobj(), path.string().c_str()); + gtk_file_chooser_set_current_folder(reinterpret_cast(dialog.gobj()), path.string().c_str()); else { boost::system::error_code ec; auto current_path=boost::filesystem::current_path(ec); if(!ec) - gtk_file_chooser_set_current_folder((GtkFileChooser*)dialog.gobj(), current_path.string().c_str()); + gtk_file_chooser_set_current_folder(reinterpret_cast(dialog.gobj()), current_path.string().c_str()); } dialog.set_position(Gtk::WindowPosition::WIN_POS_CENTER_ON_PARENT);