summaryrefslogtreecommitdiff
path: root/Source/cmOutputConverter.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-07-28 14:39:03 +0200
committerSebastian Holtermann <sebholt@xwmw.org>2019-07-28 17:47:26 +0200
commit6675f785bec2d777720abbdc062f514bd838b879 (patch)
tree15fbabf02891fb27aee22ad032ef9238f369f3f4 /Source/cmOutputConverter.h
parent09977c181641dd4feea8fc13bf718f0f9cfe05bb (diff)
downloadcmake-6675f785bec2d777720abbdc062f514bd838b879.tar.gz
cmOutputConverter: Let EscapeForCMake accept a cm::string_view
Diffstat (limited to 'Source/cmOutputConverter.h')
-rw-r--r--Source/cmOutputConverter.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmOutputConverter.h b/Source/cmOutputConverter.h
index deca767c64..fe39fe6590 100644
--- a/Source/cmOutputConverter.h
+++ b/Source/cmOutputConverter.h
@@ -5,9 +5,10 @@
#include "cmConfigure.h" // IWYU pragma: keep
-#include <string>
-
#include "cmStateSnapshot.h"
+#include "cm_string_view.hxx"
+
+#include <string>
class cmState;
@@ -76,7 +77,7 @@ public:
bool forEcho = false,
bool useWatcomQuote = false) const;
- static std::string EscapeForCMake(const std::string& str);
+ static std::string EscapeForCMake(cm::string_view str);
/** Compute an escaped version of the given argument for use in a
windows shell. */