From 96b66a49630d85abb5cf5d9779e7eb601a4fc8bb Mon Sep 17 00:00:00 2001 From: "Daniel R. Gomez" Date: Tue, 19 Jun 2012 14:21:34 -0400 Subject: [PATCH] Avoid string.clear and string.push_back (#13319) Compiler "gcc version 2.9-aix51-020209" does not offer them. --- Tests/CMakeLib/run_compile_commands.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/CMakeLib/run_compile_commands.cxx b/Tests/CMakeLib/run_compile_commands.cxx index 434cbee99..dc1ce24f7 100644 --- a/Tests/CMakeLib/run_compile_commands.cxx +++ b/Tests/CMakeLib/run_compile_commands.cxx @@ -63,12 +63,12 @@ private: void ParseString() { - this->String.clear(); + this->String = ""; if(!Expect('"')) return; while (!Expect('"')) { Expect('\\'); - this->String.push_back(C); + this->String.append(1,C); Next(); } }