10 Oct
2007
10 Oct
'07
16:39
Qua, 2007-10-10 às 15:19 +0100, Ricardo Cruz escreveu:
Hi,
On yast-ui headers, we have code as follows: virtual char *widgetClass() { return "YCheckBox"; }
This results in a ton of warnings on newer versions of g++ (at least 4.2.1). This function names the class, while debugLabel() names the object, so the string should always be constructed like that. Let's just make the pointer const. Patch appended.
Thanks, Ricardo
Ah, let's flag the function as const while we are at it. Ricardo