X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsharedlibrary.cpp;h=a6e8239524c91fb9775620ac41445d2e08395e8b;hb=564160e126f525dda52f27044d29b479088da191;hp=5e479f3c9f652f64c03a9ab3eb472ae645c807ed;hpb=bf0883b6dd3946612922aa1b7c04a87d06442df7;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)