From 8ab3660a1ed0bf213d297e4dc8a7c3548cb14555 Mon Sep 17 00:00:00 2001 From: Frank Winklmeier Date: Thu, 22 Feb 2018 16:05:40 +0100 Subject: cmOutputConverter: Inline some functions and avoid string re-allocations Use std::string (with correct initial size) in cmOutputConverter::Shell__GetArgument instead of ostringstream. This avoids several re-allocations of the string buffer. In addition, convert some of the private static members into inline free functions to avoid function calls. --- Source/cmOutputConverter.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Source/cmOutputConverter.h') diff --git a/Source/cmOutputConverter.h b/Source/cmOutputConverter.h index ae15055ed1..ed7143c435 100644 --- a/Source/cmOutputConverter.h +++ b/Source/cmOutputConverter.h @@ -117,11 +117,7 @@ public: private: cmState* GetState() const; - static int Shell__CharIsWhitespace(char c); - static int Shell__CharNeedsQuotesOnUnix(char c); - static int Shell__CharNeedsQuotesOnWindows(char c); static int Shell__CharNeedsQuotes(char c, int flags); - static int Shell__CharIsMakeVariableName(char c); static const char* Shell__SkipMakeVariables(const char* c); static int Shell__ArgumentNeedsQuotes(const char* in, int flags); static std::string Shell__GetArgument(const char* in, int flags); -- cgit v1.2.1