projects
/
simple-launcher
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcf093a
)
implemented copying method for LauncherItems
author
mishas
<mikhail.sobolev@gmail.com>
Sat, 17 Mar 2007 18:52:18 +0000
(18:52 +0000)
committer
mishas
<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
patch
|
blob
|
history
diff --git
a/launcher-item.h
b/launcher-item.h
index
038b4c7
..
3b4065e
100644
(file)
--- a/
launcher-item.h
+++ b/
launcher-item.h
@@
-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