On Thursday, December 23, 2010 18:55:35 Steven Sroka wrote:
> On 23 December 2010 18:10, Michael Pyne <mp...@kde.org> wrote:
> > On Thursday, December 23, 2010 18:02:36 Steven Sroka wrote:
> >> 'this' refers to KReminder(). The 'addButton' function expects the
> >> third argument to be a QObject* and not a KReminder* const, so I'm
> >> getting an error. I've tried the KDE forums, but I haven't found a fix
> >> for this.
> > 
> > Whatever KReminder member function you're in is declared to be const.
> > That changes the type of this from KReminder* to KReminder *const.
> 
> I'm in setupObjects(), which is not declared as const. Only a slot and
> my d-pointer are declared const.

OK, if it's not that then the only things I could think of off-hand would be a 
missing #include (or a misspelled one), but that should lead to many other 
error messages than just that, or a possible syntax error earlier which gets 
the C++ parser confused as to what's going on.

Having the exact error message would probably be useful as well.

Regards,
 - Michael Pyne

Attachment: signature.asc
Description: This is a digitally signed message part.

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to