X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmsvcarchiver.cpp;h=5544b2768532bc1f74b9499f0256e1e5139bb431;hb=6b84e1f5673888753cbe566c1365222ed33fd3ac;hp=4a44bee593f463a94ef4702ee75b2410a611d037;hpb=45dd0aa6e8f2107f1bd7d37fe4b171ee2259af60;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));