diff options
author | Brad King <brad.king@kitware.com> | 2014-07-31 16:48:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-31 16:49:51 (GMT) |
commit | 30983ebec1f242888560cff86e8789b3f02be056 (patch) | |
tree | 6d5bb33ef1199ed87e4ce58b08ee036ff2adfd89 /Source/cmGlobalGenerator.h | |
parent | b48211d4261840136e750d3d82f195ad48b17a8f (diff) | |
download | CMake-30983ebec1f242888560cff86e8789b3f02be056.zip CMake-30983ebec1f242888560cff86e8789b3f02be056.tar.gz CMake-30983ebec1f242888560cff86e8789b3f02be056.tar.bz2 |
cmGlobalGenerator: Take Build output argument by reference
No call sites pass NULL to the output argument, so take it by
reference to avoid the if(output) conditions. Propagate the
change through the TryCompile APIs that call it.
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r-- | Source/cmGlobalGenerator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h index 6b608bb..f80c3c7 100644 --- a/Source/cmGlobalGenerator.h +++ b/Source/cmGlobalGenerator.h @@ -116,7 +116,7 @@ public: virtual int TryCompile(const std::string& srcdir, const std::string& bindir, const std::string& projectName, const std::string& targetName, - bool fast, std::string *output, cmMakefile* mf); + bool fast, std::string& output, cmMakefile* mf); /** @@ -127,7 +127,7 @@ public: */ int Build(const std::string& srcdir, const std::string& bindir, const std::string& projectName, const std::string& targetName, - std::string *output, + std::string& output, const std::string& makeProgram, const std::string& config, bool clean, bool fast, double timeout, |