summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorDaniel R. Gomez <gomez@teragram.com>2012-06-19 18:21:34 (GMT)
committerBrad King <brad.king@kitware.com>2012-06-19 18:21:34 (GMT)
commit96b66a49630d85abb5cf5d9779e7eb601a4fc8bb (patch)
tree1cf3bff8aa9a5e4ef82a481408fb8ecbf1f5d0c8 /Tests
parent1d8199ffecbd8881c38e0e63ee07844a50abac49 (diff)
downloadCMake-96b66a49630d85abb5cf5d9779e7eb601a4fc8bb.zip
CMake-96b66a49630d85abb5cf5d9779e7eb601a4fc8bb.tar.gz
CMake-96b66a49630d85abb5cf5d9779e7eb601a4fc8bb.tar.bz2
Avoid string.clear and string.push_back (#13319)
Compiler "gcc version 2.9-aix51-020209" does not offer them.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLib/run_compile_commands.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CMakeLib/run_compile_commands.cxx b/Tests/CMakeLib/run_compile_commands.cxx
index 434cbee..dc1ce24 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();
}
}