|
As the title suggests—KTimeSpan::GetStart and KTimeSpan::GetStop are currently non-const, and return non-const references. It should really be possible to call these functions on a const KTimeSpan, since they’re only retrieving values. There should therefore be a const version that returns a const reference.
Same goes for operator!=, I suppose, though I admit that I haven’t found this out the hard way yet, and only spotted it when I was looking in the header :) However, it is of course standard practice to permit comparison of const objects.
As both methods are inline, it looks like a safe workaround for now would just be to use a cast.
Thanks,
--Tom
|
|
|