diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-08-26 12:47:45 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-08-27 15:31:45 (GMT) |
commit | 8586077baae74c90056704c022aad8357788fa38 (patch) | |
tree | 3f5da61ae22ecf0c4b535c26bcdc42570fa1ad92 /Source/cmQtAutoGen.h | |
parent | 52a8fb2d532ca44ad9d995fc9c0d910177f594d2 (diff) | |
download | CMake-8586077baae74c90056704c022aad8357788fa38.zip CMake-8586077baae74c90056704c022aad8357788fa38.tar.gz CMake-8586077baae74c90056704c022aad8357788fa38.tar.bz2 |
Autogen: Modernize cmQtAutoGen methods using cm::string_view
Diffstat (limited to 'Source/cmQtAutoGen.h')
-rw-r--r-- | Source/cmQtAutoGen.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmQtAutoGen.h b/Source/cmQtAutoGen.h index 619fff1..03468ec 100644 --- a/Source/cmQtAutoGen.h +++ b/Source/cmQtAutoGen.h @@ -5,6 +5,8 @@ #include "cmConfigure.h" // IWYU pragma: keep +#include "cm_string_view.hxx" + #include <memory> #include <string> #include <vector> @@ -74,16 +76,16 @@ public: static std::string Tools(bool moc, bool uic, bool rcc); /// @brief Returns the string escaped and enclosed in quotes - static std::string Quoted(std::string const& text); + static std::string Quoted(cm::string_view text); static std::string QuotedCommand(std::vector<std::string> const& command); /// @brief Returns the parent directory of the file with a "/" suffix - static std::string SubDirPrefix(std::string const& filename); + static std::string SubDirPrefix(cm::string_view filename); /// @brief Appends the suffix to the filename before the last dot - static std::string AppendFilenameSuffix(std::string const& filename, - std::string const& suffix); + static std::string AppendFilenameSuffix(cm::string_view filename, + cm::string_view suffix); /// @brief Merges newOpts into baseOpts static void UicMergeOptions(std::vector<std::string>& baseOpts, |