]> git.tdb.fi Git - builder.git/blobdiff - source/sourcepackage.cpp
Use auto type for iterator variables
[builder.git] / source / sourcepackage.cpp
index 8c535e72192d8dd8dae16b5989f70b3faa4367f6..4d680ba9bd234e5d16e62ea76adda82bf8a89c2e 100644 (file)
@@ -205,7 +205,7 @@ void SourcePackage::Loader::finish()
 {
        /* Make sure the source tarball is last in the list so targets from all
        other components wil be created first */
-       ComponentList::iterator i = find(obj.components, obj.source_archive);
+       auto i = find(obj.components, obj.source_archive);
        if(i!=obj.components.end())
                obj.components.splice(obj.components.end(), obj.components, i);
 }
@@ -220,7 +220,7 @@ void SourcePackage::Loader::feature(const string &n, const string &d)
        const Config::Option &opt = obj.config.add_option(feat);
        if(options)
        {
-               Config::InputOptions::const_iterator i = options->find(opt.name);
+               auto i = options->find(opt.name);
                if(i!=options->end())
                        obj.config.set_option(opt.name, i->second);
        }