svn path=/trunk/; revision=29104
}
string
-Project::ResolveNextProperty ( string& s ) const
+Project::ResolveNextProperty ( const string& s ) const
{
size_t i = s.find ( "${" );
if ( i == string::npos )
string propertyName = s.substr ( i + 2, propertyNameLength );
const Property* property = LookupProperty ( propertyName );
if ( property != NULL )
- return s.replace ( i, propertyNameLength + 3, property->value );
+ return string ( s ).replace ( i, propertyNameLength + 3, property->value );
}
}
return s;
const std::string& GetProjectFilename () const;
std::string ResolveProperties ( const std::string& s ) const;
private:
- std::string ResolveNextProperty ( std::string& s ) const;
+ std::string ResolveNextProperty ( const std::string& s ) const;
const Property* LookupProperty ( const std::string& name ) const;
void SetConfigurationOption ( char* s,
std::string name,