pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: pkgsrc/cad/boolean
On Tue, Jan 03, 2012 at 03:03:33AM +0100, Joerg Sonnenberger wrote:
> > Log Message:
> > Fix undefined behavior (promoted from a warning to an error in recent gcc)
> > by casting string objects to const char * before passing to printf.
>
> This looks wrong. You shouldn't be casting, but using .c_str() of the
> wxString instance.
eh? why?
// implicit conversion to C string
operator const wxChar*() const { return c_str(); }
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index