[prev in list] [next in list] [prev in thread] [next in thread]
List: haiku-commits
Subject: [haiku-commits] Re: haiku: hrev46445 - src/kits/network/libnetapi
From: Ingo Weinhold <ingo_weinhold () gmx ! de>
Date: 2013-11-26 0:07:33
Message-ID: 5293E645.7070108 () gmx ! de
[Download RAW message or body]
On 11/25/2013 09:57 PM, Axel Dörfler wrote:
> Am 25/11/2013 18:42, schrieb korli@users.berlios.de:
>> BUrlRequest* caller;
>> if (message->FindPointer(kUrlProtocolCaller,
>> reinterpret_cast<void**>(&caller)) != B_OK)
>> return;
>
> Is that cast really needed?
It is. However, a static_cast should suffice. FWIW I'm always using a C
cast when at least one of source or target type is not an object
pointer, as the C++ casts can't do anything differently in such a case
anyway.
CU, Ingo
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic