summaryrefslogtreecommitdiff
path: root/Source/cmQtAutoGen.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-08-26 14:47:45 +0200
committerSebastian Holtermann <sebholt@xwmw.org>2019-08-27 17:31:45 +0200
commit8586077baae74c90056704c022aad8357788fa38 (patch)
tree3f5da61ae22ecf0c4b535c26bcdc42570fa1ad92 /Source/cmQtAutoGen.h
parent52a8fb2d532ca44ad9d995fc9c0d910177f594d2 (diff)
downloadcmake-8586077baae74c90056704c022aad8357788fa38.tar.gz
Autogen: Modernize cmQtAutoGen methods using cm::string_view
Diffstat (limited to 'Source/cmQtAutoGen.h')
-rw-r--r--Source/cmQtAutoGen.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmQtAutoGen.h b/Source/cmQtAutoGen.h
index 619fff14f0..03468ecf65 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,