aboutsummaryrefslogtreecommitdiff
path: root/build/algorithm.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-24 06:27:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-24 06:27:57 +0200
commit52925684387496e83425c79f74b29a91943466a7 (patch)
tree02ba612b339e73625be28ab141fe11e358866404 /build/algorithm.cxx
parent5fc53bd74c7635a292cef041180da4cd32b7fb12 (diff)
Make empty key to always be prefix in prefix_map
Diffstat (limited to 'build/algorithm.cxx')
-rw-r--r--build/algorithm.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/build/algorithm.cxx b/build/algorithm.cxx
index ddf0071..d418cda 100644
--- a/build/algorithm.cxx
+++ b/build/algorithm.cxx
@@ -44,13 +44,10 @@ namespace build
if (i == rules.end ()) // No rules registered for this target type.
continue;
- const auto& rules (i->second); // Name map.
+ const auto& rules (i->second); // Hint map.
string hint; // @@ TODO
-
- auto rs (hint.empty ()
- ? make_pair (rules.begin (), rules.end ())
- : rules.find (hint));
+ auto rs (rules.find (hint));
for (auto i (rs.first); i != rs.second; ++i)
{