diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2018-01-24 12:57:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-01-31 16:04:36 (GMT) |
commit | 901c4a1e05ae7d01dcf4208dfd1b11e1534d4895 (patch) | |
tree | dab75963a71f1fa58696582756e558b5803082b5 /Source/cmExpandedCommandArgument.h | |
parent | 88ed556d99068a5e1bf303e69a156a25fb985bcf (diff) | |
download | CMake-901c4a1e05ae7d01dcf4208dfd1b11e1534d4895.zip CMake-901c4a1e05ae7d01dcf4208dfd1b11e1534d4895.tar.gz CMake-901c4a1e05ae7d01dcf4208dfd1b11e1534d4895.tar.bz2 |
cmExpandedCommandArgument: add an overload for const char*
Static string comparisons were causing heap allocations just for a
comparison.
Diffstat (limited to 'Source/cmExpandedCommandArgument.h')
-rw-r--r-- | Source/cmExpandedCommandArgument.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmExpandedCommandArgument.h b/Source/cmExpandedCommandArgument.h index fe86528..302e8db 100644 --- a/Source/cmExpandedCommandArgument.h +++ b/Source/cmExpandedCommandArgument.h @@ -24,6 +24,7 @@ public: bool WasQuoted() const; + bool operator==(const char* value) const; bool operator==(std::string const& value) const; bool empty() const; |