projects
/
simple-launcher
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added utility method for checking if a name is already registered
[simple-launcher]
/
launcher-item.h
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) {