X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsharedlibrary.cpp;fp=source%2Fsharedlibrary.cpp;h=a6e8239524c91fb9775620ac41445d2e08395e8b;hb=7c2db9e2b91da953701be233336c5bfa1f3c4af0;hp=5e479f3c9f652f64c03a9ab3eb472ae645c807ed;hpb=32d6218afe58969f2b18dfa6e262bb9509829abe;p=builder.git diff --git a/source/sharedlibrary.cpp b/source/sharedlibrary.cpp index 5e479f3..a6e8239 100644 --- a/source/sharedlibrary.cpp +++ b/source/sharedlibrary.cpp @@ -48,8 +48,8 @@ SharedLibrary::SharedLibrary(Builder &b, const Component &c, const list::const_iterator i=objects.begin(); i!=objects.end(); ++i) - (*i)->set_used_in_shared_library(true); + for(ObjectFile *o: objects) + o->set_used_in_shared_library(true); } string SharedLibrary::generate_filename(const Component &comp)