1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

wwl: fixed dtinfo segfault due to missing copy constructor in WArgList

This commit is contained in:
alx 2014-02-21 15:29:15 +01:00 committed by Jon Trulson
parent 0e707fe71f
commit 46a6a58fbd
2 changed files with 10 additions and 0 deletions

View file

@ -96,6 +96,8 @@ public :
}
}
WArgList(const WArgList &r);
inline ArgList Args() const { return args; }
inline Cardinal NumArgs() const { return num_args; }
inline void Reset() { num_args = 0; }

View file

@ -162,6 +162,14 @@ WArgList::WArgList (String name, XtArgVal value, ...)
va_end (argv);
}
WArgList::WArgList(const WArgList &r)
{
num_args = r.num_args;
alloc_args = num_args;
args = new Arg[num_args];
memcpy(args, r.args, sizeof(Arg)*num_args);
}
/*?nodoc?*/
Arg&
WArgList::Grow (Cardinal n)