diff options
author | Frank Winklmeier <frank.winklmeier@cern.ch> | 2018-02-22 15:05:40 (GMT) |
---|---|---|
committer | Frank Winklmeier <frank.winklmeier@cern.ch> | 2018-02-23 16:23:10 (GMT) |
commit | 8ab3660a1ed0bf213d297e4dc8a7c3548cb14555 (patch) | |
tree | bc363f5018267da5d16cebcb56895c42f78f96a6 /Source/cmOutputConverter.h | |
parent | ebf0a0827992be5cc03e530f9dc06bd1d05c1aa6 (diff) | |
download | CMake-8ab3660a1ed0bf213d297e4dc8a7c3548cb14555.zip CMake-8ab3660a1ed0bf213d297e4dc8a7c3548cb14555.tar.gz CMake-8ab3660a1ed0bf213d297e4dc8a7c3548cb14555.tar.bz2 |
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.
Diffstat (limited to 'Source/cmOutputConverter.h')
-rw-r--r-- | Source/cmOutputConverter.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Source/cmOutputConverter.h b/Source/cmOutputConverter.h index ae15055..ed7143c 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); |