]> git.tdb.fi Git - builder.git/blobdiff - source/sourcepackage.cpp
Use shortcut functions for find calls
[builder.git] / source / sourcepackage.cpp
index a89feb245c7c13ad50f4ad72920202ba328caed2..8c535e72192d8dd8dae16b5989f70b3faa4367f6 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.begin(), obj.components.end(), obj.source_archive);
+       ComponentList::iterator i = find(obj.components, obj.source_archive);
        if(i!=obj.components.end())
                obj.components.splice(obj.components.end(), obj.components, i);
 }