summaryrefslogtreecommitdiffstats
path: root/generator/shibokengenerator.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-10-27 15:56:58 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-10-28 15:12:05 -0200
commitaee6f385b5ffbed54df2e18ece072a7cc3281768 (patch)
tree75679b25044dd50c5cc012088d9752e596ed9b8a /generator/shibokengenerator.cpp
parent45f10c2264bef5c25e493bb6f70ef6355a7f94d1 (diff)
downloadshiboken-aee6f385b5ffbed54df2e18ece072a7cc3281768.tar.gz
shiboken-aee6f385b5ffbed54df2e18ece072a7cc3281768.tar.xz
shiboken-aee6f385b5ffbed54df2e18ece072a7cc3281768.zip
Simplifies the generated code removing the use of std::auto_ptr.
Diffstat (limited to 'generator/shibokengenerator.cpp')
-rw-r--r--generator/shibokengenerator.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/generator/shibokengenerator.cpp b/generator/shibokengenerator.cpp
index a1606e85..aafa3c50 100644
--- a/generator/shibokengenerator.cpp
+++ b/generator/shibokengenerator.cpp
@@ -1209,8 +1209,6 @@ void ShibokenGenerator::writeCodeSnips(QTextStream& s,
argReplacement = usePyArgs ? QString("pyargs[%1]").arg(i - removed) : "arg";
} else {
argReplacement = QString("cpp_arg%1").arg(i - removed);
- if (shouldDereferenceArgumentPointer(arg))
- argReplacement.prepend("(*").append(')');
}
}
} else {
@@ -1236,8 +1234,6 @@ void ShibokenGenerator::writeCodeSnips(QTextStream& s,
argName = arg->defaultValueExpression();
} else {
argName = QString("cpp_arg%1").arg(arg->argumentIndex() - removed);
- if (shouldDereferenceArgumentPointer(arg))
- argName.prepend('*');
}
argumentNames << argName;
} else {