]> git.tdb.fi Git - builder.git/blobdiff - source/buildgraph.h
Remove most container typedefs and refactor others
[builder.git] / source / buildgraph.h
index 1636e27ae714b3706f78605c16e008708bd19787..371b5447e2e01291f8e902103a34d3cb12065565 100644 (file)
@@ -12,12 +12,9 @@ Manages a graph of targets.
 */
 class BuildGraph
 {
-public:
-       typedef std::map<std::string, Target *> TargetMap;
-
 private:
        Builder &builder;
-       TargetMap targets;
+       std::map<std::string, Target *> targets;
        Target *goals;
 
 public:
@@ -27,7 +24,7 @@ public:
        /** Looks up a target by name.  Returns 0 if no such target exists. */
        Target *get_target(const std::string &) const;
 
-       const TargetMap &get_targets() const { return targets; }
+       const std::map<std::string, Target *> &get_targets() const { return targets; }
 
        /** Adds a target.  It can later be retrieved by name.  Called from Target
        constructor. */