summaryrefslogtreecommitdiffstats
path: root/headergenerator.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-10-30 17:36:33 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-10-30 18:08:20 -0200
commit9c6170b5a6ec1e84bc777f6f0aa09250b594d87d (patch)
treeed773496ef87a94e94b0c6e82596b814c4980091 /headergenerator.cpp
parentf851bcd28974db9a3614145a4ced9f04e321d836 (diff)
downloadshiboken-9c6170b5a6ec1e84bc777f6f0aa09250b594d87d.tar.gz
shiboken-9c6170b5a6ec1e84bc777f6f0aa09250b594d87d.tar.xz
shiboken-9c6170b5a6ec1e84bc777f6f0aa09250b594d87d.zip
modified overload method decisor to create an instance of a value-type
when a method that expects a reference for the value-type receives another type convertible to said value-type; the instance created is given to a std::auto_ptr object to be deleted at the end of the scope Reviewed by Hugo Parente Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'headergenerator.cpp')
-rw-r--r--headergenerator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/headergenerator.cpp b/headergenerator.cpp
index bd671012..af628a02 100644
--- a/headergenerator.cpp
+++ b/headergenerator.cpp
@@ -409,6 +409,8 @@ void HeaderGenerator::finishGeneration()
s << "#include <basewrapper.h>" << endl;
s << "#include <bindingmanager.h>" << endl << endl;
+ s << "#include <memory>" << endl << endl;
+
s << "// Class Includes" << endl;
s << classIncludes << endl;