From 6675f785bec2d777720abbdc062f514bd838b879 Mon Sep 17 00:00:00 2001 From: Sebastian Holtermann Date: Sun, 28 Jul 2019 14:39:03 +0200 Subject: cmOutputConverter: Let EscapeForCMake accept a cm::string_view --- Source/cmOutputConverter.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Source/cmOutputConverter.h') 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 - #include "cmStateSnapshot.h" +#include "cm_string_view.hxx" + +#include 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. */ -- cgit v1.2.1