summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-09-24 10:35:58 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-09-24 10:46:02 -0300
commit874d046ce200be7bb0f815a54dcba39909481001 (patch)
treec1cb53f9d40c18e3faf4ebb0b2ce36b582faa1a8
parentc2ec991687e11c94e3389bc6349b1844af7efe9f (diff)
downloadshiboken-874d046ce200be7bb0f815a54dcba39909481001.tar.gz
shiboken-874d046ce200be7bb0f815a54dcba39909481001.tar.xz
shiboken-874d046ce200be7bb0f815a54dcba39909481001.zip
Fix bug#386 - "NUL, SOH, and other characters in generated code"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
-rw-r--r--generator/cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index afa1746e..7f9c865c 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -2894,7 +2894,7 @@ void CppGenerator::writeEnumInitialization(QTextStream& s, const AbstractMetaEnu
enumValueText += enumValue->name();
#ifdef AVOID_PROTECTED_HACK
} else {
- enumValueText += enumValue->value();
+ enumValueText += QString::number(enumValue->value());
}
#endif