summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-05-25 19:12:21 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-05-26 16:18:50 -0300
commit666a4deb3be66237800145ba0ad9f894575f044d (patch)
tree560bcbe1f8cc1ce1217964f171f1a6c5f39be7a7
parentcbd2e80d0351fa19ee1ad67f9516fa0e975fc561 (diff)
downloadshiboken-666a4deb3be66237800145ba0ad9f894575f044d.tar.gz
shiboken-666a4deb3be66237800145ba0ad9f894575f044d.tar.xz
shiboken-666a4deb3be66237800145ba0ad9f894575f044d.zip
Fixed use of constructor for code snip.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
-rw-r--r--cppgenerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp
index 33456f7f..1bd6d692 100644
--- a/cppgenerator.cpp
+++ b/cppgenerator.cpp
@@ -36,7 +36,7 @@ inline CodeSnipList getConversionRule(TypeSystem::Language lang, const AbstractM
foreach(AbstractMetaArgument *arg, function->arguments()) {
QString convRule = function->conversionRule(lang, arg->argumentIndex() + 1);
if (!convRule.isEmpty()) {
- CodeSnip snip(TypeSystem::TargetLangCode);
+ CodeSnip snip(0, TypeSystem::TargetLangCode);
snip.position = CodeSnip::Beginning;
convRule.replace("%in", arg->argumentName());
@@ -60,7 +60,7 @@ inline CodeSnipList getReturnConversionRule(TypeSystem::Language lang,
QString convRule = function->conversionRule(lang, 0);
if (!convRule.isEmpty()) {
- CodeSnip snip(lang);
+ CodeSnip snip(0, lang);
snip.position = CodeSnip::Beginning;
convRule.replace("%in", inputName);