layers: prefer using instead of typedef
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Tue, 5 Sep 2017 11:56:17 +0000 (13:56 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Tue, 5 Sep 2017 11:56:55 +0000 (13:56 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/layers.hpp

index a33f24a..af1638a 100644 (file)
@@ -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