From c0e8c0f5aa004fb7f8c1804a5e29bd22862c9360 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 10 Jul 2009 11:07:27 -0400 Subject: [PATCH] ENH: New OutputParser::Process() signature This overload accepts a null-terminated string instead of requiring a length. It is useful to pass some fake process output before and after the real process output. --- Source/cmProcessTools.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmProcessTools.h b/Source/cmProcessTools.h index f8b2c5256..083a06727 100644 --- a/Source/cmProcessTools.h +++ b/Source/cmProcessTools.h @@ -35,6 +35,8 @@ public: in any more data and false if it is done. */ bool Process(const char* data, int length) { return this->ProcessChunk(data, length); } + bool Process(const char* data) + { return this->Process(data, static_cast(strlen(data))); } virtual ~OutputParser() {} protected: