X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2Fbuilder.cpp;h=21592661624742d5085d48a73a1c4ccf76e79572;hb=8f99b70eb78bdb5537afc77aa283961a2e825506;hp=5475c7dab99aaa6baf610ec6a6a3529d21b0b5bc;hpb=7c2db9e2b91da953701be233336c5bfa1f3c4af0;p=builder.git diff --git a/source/builder.cpp b/source/builder.cpp index 5475c7d..2159266 100644 --- a/source/builder.cpp +++ b/source/builder.cpp @@ -324,7 +324,7 @@ void Builder::Loader::build_type(const string &n) { BuildType btype(n); load_sub(btype); - BuildTypeMap::iterator i = obj.build_types.insert(BuildTypeMap::value_type(n, btype)).first; + auto i = obj.build_types.insert(BuildTypeMap::value_type(n, btype)).first; if(!obj.build_type) obj.build_type = &i->second; } @@ -333,10 +333,7 @@ void Builder::Loader::package(const string &n) { SourcePackage *pkg = new SourcePackage(obj, n, get_source()); - if(options) - load_sub(*pkg, *options); - else - load_sub(*pkg); + load_sub(*pkg, options); if(obj.build_type) pkg->set_build_type(*obj.build_type);