From 0fe3ebe0097fc8990d4544f6e3f8e34fb7b9d8ee Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Wed, 4 Nov 2009 10:45:46 -0800 Subject: bug 4349 - gcc warning in PythonUtil --- cpp/src/Slice/PythonUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/Slice/PythonUtil.cpp') diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp index b9485ad5c47..482bd3ccd36 100644 --- a/cpp/src/Slice/PythonUtil.cpp +++ b/cpp/src/Slice/PythonUtil.cpp @@ -1182,8 +1182,8 @@ Slice::Python::CodeVisitor::visitStructStart(const StructPtr& p) }; for(int opIndex = 0; opIndex != sizeof(richOps)/sizeof(richOps[0]); opIndex += 2) { - const char* opName = richOps[opIndex]; - const char* opSymbol = richOps[opIndex+1]; + string opName = richOps[opIndex]; + string opSymbol = richOps[opIndex+1]; _out << sp << nl << "def " << opName << "(self, other):"; _out.inc(); -- cgit v1.2.3