|
@@ -164,9 +164,10 @@ bool cmMacroHelperCommand::InvokeInitialPass
|
|
|
{
|
|
{
|
|
|
if (!argnDefInitialized)
|
|
if (!argnDefInitialized)
|
|
|
{
|
|
{
|
|
|
- std::vector<std::string>::const_iterator eit;
|
|
|
|
|
|
|
+ std::vector<std::string>::const_iterator eit
|
|
|
|
|
+ = expandedArgs.begin();
|
|
|
std::vector<std::string>::size_type cnt = 0;
|
|
std::vector<std::string>::size_type cnt = 0;
|
|
|
- for(eit = expandedArgs.begin(); eit != expandedArgs.end(); ++eit)
|
|
|
|
|
|
|
+ for( ; eit != expandedArgs.end(); ++eit)
|
|
|
{
|
|
{
|
|
|
if ( cnt >= this->Args.size()-1 )
|
|
if ( cnt >= this->Args.size()-1 )
|
|
|
{
|
|
{
|