[gnome-commander] GnomeCmdData: add reference to std::vector<Selection> selections in SearchConfig



commit cbab31727f667994c85c8f5b75f822e2faa0c016
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Tue Jun 14 18:29:45 2011 +0200

    GnomeCmdData: add reference to std::vector<Selection> selections in SearchConfig

 src/gnome-cmd-data.cc |    2 +-
 src/gnome-cmd-data.h  |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 6f03f54..7b962b7 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -871,7 +871,7 @@ inline void GnomeCmdData::load_auto_load_plugins()
 }
 
 
-GnomeCmdData::GnomeCmdData()
+GnomeCmdData::GnomeCmdData(): search_defaults(selections)
 {
     quick_connect = NULL;
 
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index 1045890..efcf278 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -91,7 +91,9 @@ struct GnomeCmdData
         History name_patterns;
         History content_patterns;
 
-        SearchConfig(): width(600), height(400), name_patterns(SEARCH_HISTORY_SIZE), content_patterns(SEARCH_HISTORY_SIZE)   {  default_profile.name = "Default";  }
+        std::vector<Selection> &profiles;
+
+        SearchConfig(std::vector<Selection> &selections): width(600), height(400), name_patterns(SEARCH_HISTORY_SIZE), content_patterns(SEARCH_HISTORY_SIZE), profiles(selections)   {  default_profile.name = "Default";  }
 
         friend XML::xstream &operator << (XML::xstream &xml, SearchConfig &cfg);
     };



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