[Aptitude-devel] Review of b598238
Sune Vuorela
nospam at vuorela.dk
Mon Aug 2 19:07:27 UTC 2010
On 2010-08-02, Piotr Galiszewski <piotr at galiszewski.pl> 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
More information about the Aptitude-devel
mailing list