[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: KConfigIniBackend::stringToPrintable optimization patch
From: mirko () kdab ! net (Mirko Boehm)
Date: 2009-05-29 8:41:38
Message-ID: 4FD14F62-956E-4EED-9ED6-D2D5989BDD3D () kdab ! net
[Download RAW message or body]
Hi,
I feel like starting a flame war :-)
On May 28, 2009, at 13:02 , Oswald Buddenhagen wrote:
> hi,
>
> On Thu, May 28, 2009 at 09:50:57AM +0700, Vyacheslav Tokarev wrote:
>> Please review it, and if it's ok can I commit?
>>
>> + char* data = result.data();
>> + char* start = data;
>>
> please use
> char *variable = ...
It is a character pointer, that is the type of the variable. It is not
a character that happens to be pointing to something. So it should be
char* var, not char *var. The latter structure requires you to read
the whole statement, only to figure out that the first thing you
understood (char) was wrong.
I have no interest in the discussion, but I wanted to point out that
the preference to type *var; is completely incomprehensible to me.
Imagine there would be more stars. Uuuh.
Cheers,
Mirko.
--
Mirko Boehm | mirko@kdab.net | Senior Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Germany: +49-30-521325470, Sweden (HQ): +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic