Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: help fixing timeline-0.9.0 for 1.3.18



Lars Altenhain wrote:
Hi,

try adding a (const char *) in front of the functions that generate the strings for the sprintf call. This explicitly calls the conversion operator to of the cString class which returns a pointer to the string which is needed for the printf call.
E.g.: "ch2->Name()" should be changed to "(const char *) ch2->Name()"

Lars

Thank you for your response. If I take the following expression:

ct2->PrintDay(ct2->Day())

and translate that to:

ct2->PrintDay((const char *)ct2->Day())

Then, I get the following error.

checkerOsd.c:274: error: invalid conversion from `const char*' to `int'
checkerOsd.c:274: error:   initializing argument 1 of `static cString
   cTimer::PrintDay(int, long int)'
checkerOsd.c:274: warning: cannot pass objects of non-POD type `class cString'
   through `...'; call will abort at runtime
checkerOsd.c:274: warning: format argument is not a pointer (arg 7)





Home | Main Index | Thread Index