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:
parent
0e707fe71f
commit
46a6a58fbd
2 changed files with 10 additions and 0 deletions
|
@ -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; }
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue