[haiku-commits] Re: haiku: hrev44968 - src/apps/terminal

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: "haiku-commits@xxxxxxxxxxxxx" <haiku-commits@xxxxxxxxxxxxx>
  • Date: Fri, 7 Dec 2012 01:02:30 -0500

On Fri, Dec 7, 2012 at 12:57 AM, John Scipione <jscipione@xxxxxxxxx> wrote:
> On Thu, Dec 6, 2012 at 10:12 PM, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
>> I wonder what the purpose of the ugly const_cast<>() is. The "schemes"
>> variable doesn't seem to be dereferenced in a way that would compromise
>> constness.
>
> src/apps/terminal/AppearPrefView.cpp:397: initialization to
> `color_scheme **' from `const color_scheme **' discards qualifiers

I spoke too soon, I declared color_scheme const and then elided the
cast and it compiled fine... nice catch.

Other related posts: