projects
/
simple-launcher
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9342ad
)
added utility method for checking if a name is already registered
author
mishas
<mikhail.sobolev@gmail.com>
Wed, 14 Mar 2007 09:12:14 +0000
(09:12 +0000)
committer
mishas
<mikhail.sobolev@gmail.com>
Wed, 14 Mar 2007 09:12:14 +0000
(09:12 +0000)
git-svn-id: file:///svnroot/simple-launcher/trunk@77
3ba93dab
-e023-0410-b42a-
de7732cf370a
launcher-item.h
patch
|
blob
|
history
diff --git
a/launcher-item.h
b/launcher-item.h
index
bfa78bc
..
6005d28
100644
(file)
--- a/
launcher-item.h
+++ b/
launcher-item.h
@@
-68,6
+68,10
@@
typedef struct {
Names myNames;
Items myItems;
+ bool exists(const std::string& name) {
+ return myNames.find(name) != myNames.end();
+ }
+
size_t size() { return myNames.size(); }
LauncherItem *operator[](int index) {