X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmsvcarchiver.cpp;h=5544b2768532bc1f74b9499f0256e1e5139bb431;hb=aa053d637e8259755af7d2e4b510a242f4d29c7b;hp=4a44bee593f463a94ef4702ee75b2410a611d037;hpb=9f885c3eec8f065b7dc400acfb9dd67158284fcf;p=builder.git diff --git a/source/msvcarchiver.cpp b/source/msvcarchiver.cpp index 4a44bee..5544b27 100644 --- a/source/msvcarchiver.cpp +++ b/source/msvcarchiver.cpp @@ -19,12 +19,13 @@ MsvcArchiver::MsvcArchiver(Builder &b, const Architecture &a, const MicrosoftToo set_command((ms_tools.get_vc_bin_dir()/"lib.exe").str(), false); } -Target *MsvcArchiver::create_target(const list &sources, const string &) +Target *MsvcArchiver::create_target(const vector &sources, const string &) { if(sources.empty()) throw invalid_argument("MsvcArchiver::create_target"); - list objs; + vector objs; + objs.reserve(sources.size()); for(Target *s: sources) objs.push_back(&dynamic_cast(*s));