implemented copying method for LauncherItems
authormishas <mikhail.sobolev@gmail.com>
Sat, 17 Mar 2007 18:52:18 +0000 (18:52 +0000)
committermishas <mikhail.sobolev@gmail.com>
Sat, 17 Mar 2007 18:52:18 +0000 (18:52 +0000)
git-svn-id: file:///svnroot/simple-launcher/trunk@83 3ba93dab-e023-0410-b42a-de7732cf370a

launcher-item.h

index 038b4c7..3b4065e 100644 (file)
@@ -62,7 +62,7 @@ private:
   static GtkIconTheme *ourTheme;
 };
 
-typedef struct {
+typedef struct LauncherItems {
   typedef std::vector<std::string> Names;
   typedef std::map<std::string, LauncherItem *> Items;
 
@@ -103,7 +103,14 @@ typedef struct {
     myNames.resize(0);
     myItems.clear();
   }
-} LauncherItems;
+
+  LauncherItems& operator=(const LauncherItems& that) {
+    myNames = that.myNames;
+    myItems = that.myItems;
+
+    return *this;
+  }
+};
 
 #endif