On 2010-08-02, Piotr Galiszewski <[email protected]> wrote:
>> What do these hardcoded numbers represent? They appear to be
>> numeric column IDs counting from zero? Could we make an enum for this?
>>
>
> True. Probably we cannot to this. It is a reimplementation of
> appropriate virtual method;
enum Headers{
NameHeader,
VersionHeader,
Blah
};
QVariant foo(int i) {
Headers h = static_cast<Headers>(i);
switch(h) {
case NameHeader: {
break;
}
case VersionHeader: {
break;
}
....
}
}
/Sune
_______________________________________________
Aptitude-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/aptitude-devel