diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-03-12 22:50:42 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-03-13 14:27:23 (GMT) |
commit | c725bb3cbd51edd4043f81d01b7a01bbd42adb2f (patch) | |
tree | b4bfc2adbb46ea55af5bae98273d20b8cc0ec171 /Source/cmVisualStudio10TargetGenerator.h | |
parent | dcfcd23ed53d3bfe8ef299b8a3a38c47c27fa6b6 (diff) | |
download | CMake-c725bb3cbd51edd4043f81d01b7a01bbd42adb2f.zip CMake-c725bb3cbd51edd4043f81d01b7a01bbd42adb2f.tar.gz CMake-c725bb3cbd51edd4043f81d01b7a01bbd42adb2f.tar.bz2 |
Constify some APIs in generators.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.h')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.h b/Source/cmVisualStudio10TargetGenerator.h index 02b951c..8faeb8e 100644 --- a/Source/cmVisualStudio10TargetGenerator.h +++ b/Source/cmVisualStudio10TargetGenerator.h @@ -45,7 +45,7 @@ public: private: struct ToolSource { - cmSourceFile* SourceFile; + cmSourceFile const* SourceFile; bool RelativePath; }; struct ToolSources: public std::vector<ToolSource> {}; @@ -55,7 +55,8 @@ private: void WriteString(const char* line, int indentLevel); void WriteProjectConfigurations(); void WriteProjectConfigurationValues(); - void WriteSource(const char* tool, cmSourceFile* sf, const char* end = 0); + void WriteSource(const char* tool, cmSourceFile const* sf, + const char* end = 0); void WriteSources(const char* tool, std::vector<cmSourceFile*> const&); void WriteAllSources(); void WriteDotNetReferences(); @@ -77,13 +78,13 @@ private: std::vector<std::string> const & includes); void OutputIncludes(std::vector<std::string> const & includes); void OutputLinkIncremental(std::string const& configName); - void WriteCustomRule(cmSourceFile* source, + void WriteCustomRule(cmSourceFile const* source, cmCustomCommand const & command); void WriteCustomCommands(); - void WriteCustomCommand(cmSourceFile* sf); + void WriteCustomCommand(cmSourceFile const* sf); void WriteGroups(); void WriteProjectReferences(); - bool OutputSourceSpecificFlags(cmSourceFile* source); + bool OutputSourceSpecificFlags(cmSourceFile const* source); void AddLibraries(cmComputeLinkInformation& cli, std::string& libstring); void WriteLibOptions(std::string const& config); void WriteEvents(std::string const& configName); @@ -111,7 +112,7 @@ private: cmGlobalVisualStudio10Generator* GlobalGenerator; cmGeneratedFileStream* BuildFileStream; cmLocalVisualStudio7Generator* LocalGenerator; - std::set<cmSourceFile*> SourcesVisited; + std::set<cmSourceFile const*> SourcesVisited; typedef std::map<std::string, ToolSources> ToolSourceMap; ToolSourceMap Tools; |