projects
/
simple-launcher
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6950b9b
)
properly implemented the exists method for items
author
mishas
<mikhail.sobolev@gmail.com>
Wed, 14 Mar 2007 17:03:02 +0000
(17:03 +0000)
committer
mishas
<mikhail.sobolev@gmail.com>
Wed, 14 Mar 2007 17:03:02 +0000
(17:03 +0000)
git-svn-id: file:///svnroot/simple-launcher/trunk@79
3ba93dab
-e023-0410-b42a-
de7732cf370a
launcher-item.h
patch
|
blob
|
history
diff --git
a/launcher-item.h
b/launcher-item.h
index
e55ea35
..
038b4c7
100644
(file)
--- a/
launcher-item.h
+++ b/
launcher-item.h
@@
-21,6
+21,7
@@
#include <vector>
#include <map>
#include <string>
+#include <algorithm>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gtk/gtkicontheme.h>
@@
-69,7
+70,7
@@
typedef struct {
Items myItems;
bool exists(const std::string& name) {
- return myNames.find(name) != myNames.end();
+ return std::find(myNames.begin(), myNames.end(), name) != myNames.end();
}
size_t size() { return myNames.size(); }