[Qt-interest] tracking uniqueness
Andre Somers
andre at familiesomers.nl
Mon Apr 26 10:28:54 CEST 2010
On 24-4-2010 22:25, Andreas Pakulat wrote:
> On 24.04.10 10:14:20, Oliver Heins wrote:
>
>> Andreas Pakulat<apaku at gmx.de> writes:
>>
>>
>>> The only way I can see to make this work is use a send in the id for Token
>>> in its constructor, i.e.:
>>>
>>> Token( int id_ ) : id(id_) {}
>>>
>> You write »id_« -- with trailing underscore -- is this a kind of naming
>> convention?
>>
> Yeap, thats a personal convention to make it easily visible which is the
> member and which is the argument. No idea if somebody else uses this :)
>
>
Probably. There are many such things. I personally use m_ prefix for
member, and s_ prefix for static variables, but to each their own :-) It
doesn't matter, as long as you're consistent IMHO.
André
More information about the Qt-interest-old
mailing list