[gnome-commander/get_rid_of_xml] Convert old GnomeCmdData::free method into deconstructor



commit 91d0aca7c0df8eae8ed1b92a2277a09f1925282d
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sat Dec 1 21:48:58 2018 +0100

    Convert old GnomeCmdData::free method into deconstructor

 src/gnome-cmd-data.cc | 2 +-
 src/gnome-cmd-data.h  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index c5e7271a..e1f47e79 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -2725,7 +2725,7 @@ GnomeCmdData::GnomeCmdData(): search_defaults(selections)
 }
 
 
-void GnomeCmdData::free()
+GnomeCmdData::~GnomeCmdData()
 {
     if (priv)
     {
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index 123249b4..ef285199 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -690,7 +690,7 @@ struct GnomeCmdData
 
     GnomeCmdData();
 
-    void free();                // FIXME: free() -> ~GnomeCmdData()
+    ~GnomeCmdData();
 
     void load();
     void load_tabs_from_gsettings();


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