]> git.tdb.fi Git - builder.git/commitdiff
Compilation fix
authorMikko Rasa <tdb@tdb.fi>
Fri, 6 Jan 2017 02:36:15 +0000 (04:36 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 6 Jan 2017 02:36:15 +0000 (04:36 +0200)
Erase with const_iterator is allowed in C++11 so I didn't notice this
before.

source/binarycomponent.cpp

index 74ac0baf5c550ce3a349581da8a730d52a64d054..49c4897ce69d7d25492ebe1521257dca04c77062 100644 (file)
@@ -56,7 +56,7 @@ void BinaryComponent::create_targets() const
 
        list<Target *> objs;
        SourceList source_filenames = collect_source_files();
-       for(SourceList::const_iterator i=source_filenames.begin(); i!=source_filenames.end(); ++i)
+       for(SourceList::iterator i=source_filenames.begin(); i!=source_filenames.end(); ++i)
        {
                string ext = FS::extpart(FS::basename(*i));
                Target *src = 0;
@@ -71,7 +71,7 @@ void BinaryComponent::create_targets() const
                        if(processing_unit!=Tool::ONE_FILE)
                        {
                                FS::Path source_dir = FS::dirname(*i);
-                               SourceList::const_iterator j = i;
+                               SourceList::iterator j = i;
                                for(++j; j!=source_filenames.end(); )
                                {
                                        if((processing_unit!=Tool::DIRECTORY || FS::dirname(*j)==source_dir) &&