How to modify parameter passing type

Hello,
I want my parameter to be passed as pointer and not by reference. So i modify the Definition part of my function like this ( change the "&" to "*" ) :
And the Declaration like this :
Which generate the good function for me in header file :
Toto(string nom, int * test, string * gag);
And the cpp part like this :
For now everything is fine
.
But when i do a "Roundtrip C++", i have this message :
in C:\Users\fabri\Desktop\dev\Test\src\Toto.cpp line 4 Toto::Toto is lost
And it remove all the initialisation part, now my method is like this ( for the definition part, the delcaration is ok) :
.. I think i am doing it wrong ... but don't find how to do it ..
Someone has a solution ?
Fabrice
I want my parameter to be passed as pointer and not by reference. So i modify the Definition part of my function like this ( change the "&" to "*" ) :
- Code: Select all
${comment}${inline}${class}::${name}${(}${t0} ${p0}, ${t1} * ${p1}, ${t2} * ${p2}${)} : m_nom(nom), m_test(test), m_gag(gag ) ${throw}{
${body}}
And the Declaration like this :
- Code: Select all
${comment}${inline}${name}${(}${t0} ${p0}${v0}, ${t1} * ${p1}${v1}, ${t2} * ${p2}${v2}${)}${volatile}${throw}${abstract};
Which generate the good function for me in header file :
Toto(string nom, int * test, string * gag);
And the cpp part like this :
- Code: Select all
Toto::Toto(string nom, int * test, string * gag) : m_nom(nom), m_test(test), m_gag(gag ) {
${body}}
For now everything is fine

But when i do a "Roundtrip C++", i have this message :
in C:\Users\fabri\Desktop\dev\Test\src\Toto.cpp line 4 Toto::Toto is lost
And it remove all the initialisation part, now my method is like this ( for the definition part, the delcaration is ok) :
- Code: Select all
${comment}${inline}${class}::${name}${(}${t0} ${p0}, ${t1} * ${p1}, ${t2} * ${p2}${)}${throw}{
${body}}
.. I think i am doing it wrong ... but don't find how to do it ..
Someone has a solution ?
Fabrice