summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/PythonUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rw-r--r--cpp/src/Slice/PythonUtil.cpp4
1 files changed, 2 insertions, 2 deletions
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();