aboutsummaryrefslogtreecommitdiffstats
path: root/src/layers.hpp
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:29 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:29 +0200
commite2a149b190298bc60e9f952f119d52a1b3ddc9d6 (patch)
tree9dad6609fe3befa7af37b282278c781d09557085 /src/layers.hpp
parent2c9977101d257edd62b2fb2fa7fabb541efc6698 (diff)
app/layers: consolidate signed/unsigned usage
* Also make use of optional's operator* where appropriate. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/layers.hpp')
-rw-r--r--src/layers.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layers.hpp b/src/layers.hpp
index 0601614..ee32054 100644
--- a/src/layers.hpp
+++ b/src/layers.hpp
@@ -71,9 +71,9 @@ struct layer_map {
using json = nlohmann::json;
using storage_type = std::set<struct layer>;
- using layers_type = std::vector<unsigned int>;
+ using layers_type = std::vector<uint32_t>;
using role_to_layer_map = std::vector<std::pair<std::string, int>>;
- using addsurf_layer_map = std::map<unsigned, unsigned>;
+ using addsurf_layer_map = std::map<int, int>;
// XXX: we also will need a layer_id to layer map, perhaps
// make this the primary map, and the surface_id->layer a
@@ -100,7 +100,7 @@ struct layer_map {
return this->layers.size();
}
- void add_surface(unsigned surface_id, unsigned layer_id) {
+ void add_surface(int surface_id, int layer_id) {
this->surfaces[surface_id] = layer_id;
}