[gnome-commander] Adds standard copy constructor to base function to solve gcc warning since gnu++11



commit fbf1fe3d2e0822bc777760f8a440574bb33790b9
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Sun Mar 19 22:06:18 2017 +0100

    Adds standard copy constructor to base function to solve gcc warning since gnu++11

 src/gnome-cmd-regex.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-regex.h b/src/gnome-cmd-regex.h
index ec55c57..edd57e7 100644
--- a/src/gnome-cmd-regex.h
+++ b/src/gnome-cmd-regex.h
@@ -36,6 +36,7 @@ namespace GnomeCmd
         FindPattern(): match_case(FALSE)    {}
         FindPattern(const gchar *from, gboolean case_sensitive): match_case(case_sensitive)  {  if (from)  
pattern = from;  }
         FindPattern(const std::string &from, gboolean case_sensitive): pattern(from), 
match_case(case_sensitive)           {}
+        FindPattern(const FindPattern&) = default;
     };
 
     struct ReplacePattern: virtual FindPattern


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