Code Review
/
staging
/
windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
app/layers: consolidate signed/unsigned usage
[staging/windowmanager.git]
/
src
/
app.hpp
diff --git
a/src/app.hpp
b/src/app.hpp
index
c8ea01b
..
297b6af
100644
(file)
--- a/
src/app.hpp
+++ b/
src/app.hpp
@@
-120,10
+120,10
@@
struct App {
// ID allocation and proxy methods for lookup
struct id_allocator id_alloc;
// ID allocation and proxy methods for lookup
struct id_allocator id_alloc;
- optional<
unsigned
> lookup_id(char const *name) {
+ optional<
int
> lookup_id(char const *name) {
return this->id_alloc.lookup(std::string(name));
}
return this->id_alloc.lookup(std::string(name));
}
- optional<std::string> lookup_name(
unsigned
id) {
+ optional<std::string> lookup_name(
int
id) {
return this->id_alloc.lookup(id);
}
return this->id_alloc.lookup(id);
}
@@
-177,10
+177,10
@@
struct App {
void emit_invisible(char const *label);
void emit_visible(char const *label);
void emit_invisible(char const *label);
void emit_visible(char const *label);
- void activate(
unsigned
id);
- void deactivate(
unsigned
id);
+ void activate(
int
id);
+ void deactivate(
int
id);
- bool can_split(
unsigned
new_id);
+ bool can_split(
int
new_id);
};
} // namespace wm
};
} // namespace wm