summaryrefslogtreecommitdiffstats
path: root/Source/cmOutputConverter.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-07-28 12:39:03 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-07-28 15:47:26 (GMT)
commit6675f785bec2d777720abbdc062f514bd838b879 (patch)
tree15fbabf02891fb27aee22ad032ef9238f369f3f4 /Source/cmOutputConverter.h
parent09977c181641dd4feea8fc13bf718f0f9cfe05bb (diff)
downloadCMake-6675f785bec2d777720abbdc062f514bd838b879.zip
CMake-6675f785bec2d777720abbdc062f514bd838b879.tar.gz
CMake-6675f785bec2d777720abbdc062f514bd838b879.tar.bz2
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 deca767..fe39fe6 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. */