X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcomponent.cpp;h=e3f80fbc95b9becfd93c89ec9968784783d90dbf;hb=5e00719d0c63e306786ff36df61797cdbc86f3e9;hp=6545b28b95c460ed9b1f34b8ca679cd8aa77e677;hpb=9f885c3eec8f065b7dc400acfb9dd67158284fcf;p=builder.git diff --git a/source/component.cpp b/source/component.cpp index 6545b28..e3f80fb 100644 --- a/source/component.cpp +++ b/source/component.cpp @@ -94,14 +94,15 @@ BuildInfo Component::get_build_info_for_path(const FS::Path &path) const return binfo; } -list Component::collect_source_files() const +vector Component::collect_source_files() const { - list files; + vector files; for(const FS::Path &p: sources) { if(FS::is_dir(p)) { - list dirs; + vector dirs; + dirs.reserve(1+overlays.size()); dirs.push_back(p); for(const string &o: overlays) { @@ -112,7 +113,7 @@ list Component::collect_source_files() const set overlay_files; for(auto j=dirs.begin(); j!=dirs.end(); ++j) { - package.get_builder().get_logger().log("files", format("Traversing %s", *j)); + package.get_builder().get_logger().log("files", "Traversing %s", *j); for(const string &f: list_files(*j)) { if(j!=dirs.begin())