[gnome-commander] Change cast to C++



commit 4257847fb5ba377c149abfbefb6d1762e257d036
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Fri Oct 29 23:15:58 2021 +0200

    Change cast to C++

 src/gnome-cmd-dir.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-dir.cc b/src/gnome-cmd-dir.cc
index 7a7602dd..26ec4050 100644
--- a/src/gnome-cmd-dir.cc
+++ b/src/gnome-cmd-dir.cc
@@ -769,7 +769,7 @@ void gnome_cmd_dir_file_created (GnomeCmdDir *dir, const gchar *newDirUriStr)
     GnomeCmdFile *f;
 
     if (g_file_info_get_attribute_uint32 (gFileInfo, G_FILE_ATTRIBUTE_STANDARD_TYPE) == 
G_FILE_TYPE_DIRECTORY)
-        f = GNOME_CMD_FILE (gnome_cmd_dir_new_from_gfileinfo (gFileInfo, dir));
+        f = reinterpret_cast<GnomeCmdFile*> (gnome_cmd_dir_new_from_gfileinfo (gFileInfo, dir));
     else
         f = gnome_cmd_file_new (gFileInfo, dir);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]