3 Aug
2013
3 Aug
'13
7:43 p.m.
Hi all, I just came across this piece of code: memset(style, 0, sizeof(SPStyle)); That looks terrifying! SPStyle is a huge struct, containing member objects (sigc::connection) besides just simple integers and enums. CPPCheck complains with "Using 'memset' on struct that contains a virtual method.". I can't find any virtual methods in SPStyle, but still it looks like a bad bug.
I have disabled that line of code, and added extra re-init lines in r12452. Please have a look and confirm the fix.
Thanks, Johan