Constify some APIs in generators.

This commit is contained in:
Stephen Kelly
2014-03-12 23:50:42 +01:00
parent dcfcd23ed5
commit c725bb3cbd
8 changed files with 36 additions and 32 deletions
+2 -2
View File
@@ -87,7 +87,7 @@ public:
/** Generate an <output>.rule file path for a given command output. */
virtual std::string GenerateRuleFile(std::string const& output) const;
void PathTooLong(cmTarget* target, cmSourceFile* sf,
void PathTooLong(cmTarget* target, cmSourceFile const* sf,
std::string const& sfRel);
virtual const char* GetToolsVersion() { return "4.0"; }
@@ -112,7 +112,7 @@ private:
LongestSourcePath(): Length(0), Target(0), SourceFile(0) {}
size_t Length;
cmTarget* Target;
cmSourceFile* SourceFile;
cmSourceFile const* SourceFile;
std::string SourceRel;
};
LongestSourcePath LongestSource;