From 37dbce02178757560c488f02016cb44770a7fafc Mon Sep 17 00:00:00 2001

From: thomas.himbacher <thomas.himbacher@gmail.com>
Date: Thu, 12 Aug 2010 18:13:26 +0200
Subject: [PATCH 1/3] removed wrong keyword const in adaptor generation

methods with several 'out' parameters have wrong
method signature with keywords 'const' for pass-by-reference
outputs.
This commit is contained in:
Andreas Volz 2010-12-05 23:30:04 +01:00
parent 2a42e69250
commit b23f1b2eab

View file

@ -362,19 +362,19 @@ void generate_adaptor(Xml::Document &doc, const char *filename)
// generate basic signature only if no object name available...
if (!arg_object.length())
{
body << "const " << signature_to_type(arg.get("type")) << "& ";
body << signature_to_type(arg.get("type")) << "& ";
}
// ...or generate object style if available
else
{
body << "const " << arg_object << "& ";
body << arg_object << "& ";
// store a object name to later generate header includes
include_vector.push_back (arg_object);
}
if (arg_name.length())
body << " " << arg_name;
body << arg_name;
if (i+1 != args_out.size())
body << ", ";