[gnome-commander/Implement_CppCheck_suggestions] C++11 cast
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/Implement_CppCheck_suggestions] C++11 cast
- Date: Wed, 13 Mar 2019 21:42:47 +0000 (UTC)
commit 3052463f658ad846aa164e569eb2b3b0f94cd4e3
Author: Uwe Scholz <u scholz83 gmx de>
Date: Wed Mar 13 22:32:16 2019 +0100
C++11 cast
src/gnome-cmd-about-plugin.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-about-plugin.cc b/src/gnome-cmd-about-plugin.cc
index 7b0730e7..de80ffd8 100644
--- a/src/gnome-cmd-about-plugin.cc
+++ b/src/gnome-cmd-about-plugin.cc
@@ -760,7 +760,7 @@ GtkWidget *gnome_cmd_about_plugin_new (PluginInfo *info)
{
g_return_val_if_fail (info != nullptr, nullptr);
- GnomeCmdAboutPlugin *about = (GnomeCmdAboutPlugin *) g_object_new (GNOME_CMD_TYPE_ABOUT_PLUGIN, NULL);
+ auto about = static_cast<GnomeCmdAboutPlugin*> (g_object_new (GNOME_CMD_TYPE_ABOUT_PLUGIN, nullptr));
gnome_cmd_about_plugin_construct(about,
info->name, info->version, info->copyright, info->comments,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]