diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-04-21 22:25:01 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-04-21 22:48:18 (GMT) |
commit | 7284b15f8c9bb20618e5286b41ff2f13245dfb9c (patch) | |
tree | 34f680a23ea5de68236d0c486579fef362933ef6 /Source/cmScriptGenerator.h | |
parent | e99dd765b750e666975837143986237f2e33138a (diff) | |
download | CMake-7284b15f8c9bb20618e5286b41ff2f13245dfb9c.zip CMake-7284b15f8c9bb20618e5286b41ff2f13245dfb9c.tar.gz CMake-7284b15f8c9bb20618e5286b41ff2f13245dfb9c.tar.bz2 |
cmScriptGenerator: pass Indent by value
Diffstat (limited to 'Source/cmScriptGenerator.h')
-rw-r--r-- | Source/cmScriptGenerator.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/cmScriptGenerator.h b/Source/cmScriptGenerator.h index de2b60d..4023f3e 100644 --- a/Source/cmScriptGenerator.h +++ b/Source/cmScriptGenerator.h @@ -35,7 +35,7 @@ private: int Level; }; inline std::ostream& operator<<(std::ostream& os, - cmScriptGeneratorIndent const& indent) + cmScriptGeneratorIndent indent) { indent.Write(os); return os; @@ -58,12 +58,12 @@ public: protected: typedef cmScriptGeneratorIndent Indent; virtual void GenerateScript(std::ostream& os); - virtual void GenerateScriptConfigs(std::ostream& os, Indent const& indent); - virtual void GenerateScriptActions(std::ostream& os, Indent const& indent); + virtual void GenerateScriptConfigs(std::ostream& os, Indent indent); + virtual void GenerateScriptActions(std::ostream& os, Indent indent); virtual void GenerateScriptForConfig(std::ostream& os, const std::string& config, - Indent const& indent); - virtual void GenerateScriptNoConfig(std::ostream&, Indent const&) {} + Indent indent); + virtual void GenerateScriptNoConfig(std::ostream&, Indent) {} virtual bool NeedsScriptNoConfig() const { return false; } // Test if this generator does something for a given configuration. @@ -90,8 +90,8 @@ private: cmScriptGenerator(cmScriptGenerator const&); cmScriptGenerator& operator=(cmScriptGenerator const&); - void GenerateScriptActionsOnce(std::ostream& os, Indent const& indent); - void GenerateScriptActionsPerConfig(std::ostream& os, Indent const& indent); + void GenerateScriptActionsOnce(std::ostream& os, Indent indent); + void GenerateScriptActionsPerConfig(std::ostream& os, Indent indent); }; #endif |