ENH: change InitialPass to take a const reference to the argument string, to avoid changes to the file cache

This commit is contained in:
Bill Hoffman
2001-09-20 15:08:30 -04:00
parent b9d56e8497
commit baa28efd10
111 changed files with 158 additions and 152 deletions

View File

@@ -41,7 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmAbstractFilesCommand.h"
// cmAbstractFilesCommand
bool cmAbstractFilesCommand::InitialPass(std::vector<std::string>& args)
bool cmAbstractFilesCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 1 )
{
@@ -49,7 +49,7 @@ bool cmAbstractFilesCommand::InitialPass(std::vector<std::string>& args)
return false;
}
cmMakefile::SourceMap &Classes = m_Makefile->GetSources();
for(std::vector<std::string>::iterator j = args.begin();
for(std::vector<std::string>::const_iterator j = args.begin();
j != args.end(); ++j)
{
for(cmMakefile::SourceMap::iterator l = Classes.begin();