diff options
Diffstat (limited to 'Source/cmSourceFilesRemoveCommand.cxx')
-rw-r--r-- | Source/cmSourceFilesRemoveCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSourceFilesRemoveCommand.cxx b/Source/cmSourceFilesRemoveCommand.cxx index e43facb..86efc2f 100644 --- a/Source/cmSourceFilesRemoveCommand.cxx +++ b/Source/cmSourceFilesRemoveCommand.cxx @@ -41,14 +41,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "cmSourceFilesRemoveCommand.h" // cmSourceFilesRemoveCommand -bool cmSourceFilesRemoveCommand::InitialPass(std::vector<std::string>& args) +bool cmSourceFilesRemoveCommand::InitialPass(std::vector<std::string> const& args) { if(args.size() < 1 ) { this->SetError("called with incorrect number of arguments"); return false; } - for(std::vector<std::string>::iterator i = (args.begin() + 1); + for(std::vector<std::string>::const_iterator i = (args.begin() + 1); i != args.end(); ++i) { cmSourceFile file; |