diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-08-26 14:23:17 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-08-27 15:31:45 (GMT) |
commit | 7a78d1541568343898160d8e934047b84a6c98b3 (patch) | |
tree | f91bceff10a296a69cfe422e89467067b32d3075 /Source/cmQtAutoGenerator.h | |
parent | c797148e8573614a66465cd4ca6ed4bf5e8a5584 (diff) | |
download | CMake-7a78d1541568343898160d8e934047b84a6c98b3.zip CMake-7a78d1541568343898160d8e934047b84a6c98b3.tar.gz CMake-7a78d1541568343898160d8e934047b84a6c98b3.tar.bz2 |
Autogen: Let cmQtAutoGenerator::Logger methods accept cm::string_view
Diffstat (limited to 'Source/cmQtAutoGenerator.h')
-rw-r--r-- | Source/cmQtAutoGenerator.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Source/cmQtAutoGenerator.h b/Source/cmQtAutoGenerator.h index ff4c4c9..4b8b0b7 100644 --- a/Source/cmQtAutoGenerator.h +++ b/Source/cmQtAutoGenerator.h @@ -7,6 +7,7 @@ #include "cmFileTime.h" #include "cmQtAutoGen.h" +#include "cm_string_view.hxx" #include <mutex> #include <string> @@ -41,21 +42,21 @@ public: bool ColorOutput() const { return this->ColorOutput_; } void SetColorOutput(bool value); // -- Log info - void Info(GenT genType, std::string const& message) const; + void Info(GenT genType, cm::string_view message) const; // -- Log warning - void Warning(GenT genType, std::string const& message) const; - void WarningFile(GenT genType, std::string const& filename, - std::string const& message) const; + void Warning(GenT genType, cm::string_view message) const; + void WarningFile(GenT genType, cm::string_view filename, + cm::string_view message) const; // -- Log error - void Error(GenT genType, std::string const& message) const; - void ErrorFile(GenT genType, std::string const& filename, - std::string const& message) const; - void ErrorCommand(GenT genType, std::string const& message, + void Error(GenT genType, cm::string_view message) const; + void ErrorFile(GenT genType, cm::string_view filename, + cm::string_view message) const; + void ErrorCommand(GenT genType, cm::string_view message, std::vector<std::string> const& command, std::string const& output) const; private: - static std::string HeadLine(std::string const& title); + static std::string HeadLine(cm::string_view title); private: mutable std::mutex Mutex_; |