summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-05 13:56:17 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-05 13:56:55 +0200
commit61a7017f78cc08ce8744f4d2fba40a70f02e1bda (patch)
treea42c65f7ac357d770f113e42c0803fd46850eb25 /src
parent86d07805f9be5fc51b1ff3aa4cd12d1d42f7901c (diff)
layers: prefer using instead of typedef
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src')
-rw-r--r--src/layers.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/layers.hpp b/src/layers.hpp
index a33f24a..af1638a 100644
--- a/src/layers.hpp
+++ b/src/layers.hpp
@@ -60,10 +60,10 @@ struct layer {
struct layer_map {
using json = nlohmann::json;
- typedef std::set<struct layer> storage_type;
- typedef std::vector<unsigned int> layers_type;
- typedef std::vector<std::pair<std::string, int>> role_to_layer_map;
- typedef std::map<unsigned, unsigned> addsurf_layer_map;
+ using storage_type = std::set<struct layer>;
+ using layers_type = std::vector<unsigned int>;
+ using role_to_layer_map = std::vector<std::pair<std::string, int>>;
+ using addsurf_layer_map = std::map<unsigned, unsigned>;
// XXX: we also will need a layer_id to layer map, perhaps
// make this the primary map, and the surface_id->layer a