X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftoolchain.cpp;h=9d234038279d07d4ce41232c63e7ab5acec63f40;hb=0d95fee118a3fcd78f153dca5721d9fe19b6f6bf;hp=cdbc7aa0ae4e4e55ebfe76b28b8efc85df59b510;hpb=dceec8d95c63aaf4d8d4b367c9846caf9e32a6bf;p=builder.git diff --git a/source/toolchain.cpp b/source/toolchain.cpp index cdbc7aa..9d23403 100644 --- a/source/toolchain.cpp +++ b/source/toolchain.cpp @@ -16,12 +16,12 @@ void Toolchain::add_tool(Tool *tool) insert_unique(tools, tool->get_tag(), tool); } -const Tool &Toolchain::get_tool(const string &tag) const +Tool &Toolchain::get_tool(const string &tag) const { return *get_item(tools, tag); } -const Tool *Toolchain::get_tool_for_suffix(const string &suffix, bool aux) const +Tool *Toolchain::get_tool_for_suffix(const string &suffix, bool aux) const { for(ToolMap::const_iterator i=tools.begin(); i!=tools.end(); ++i) if(i->second->accepts_suffix(suffix, aux))