New methods for KTimeZone
Thiago Macieira
thiago at kde.org
Sat Jun 9 18:48:26 BST 2007
David Jarvie wrote:
>> Also, the following two functions:
>> KDateTime::Spec KDateTime::Spec::LocalZone() {
>> return Spec(KDateTime::LocalZone); }
>> KDateTime::Spec KDateTime::Spec::OffsetFromUTC(int utcOffset) {
>> return Spec(KDateTime::OffsetFromUTC, utcOffset); }
>>
>> are out of the API style guidelines because they begin with a capital
>> letter.
>
>Yes, they vary from the style guidelines, but for a reason. There are
> two public constant data members (the two non-POD items you mention
> above) and these two methods, all of which have the same names as the
>KDateTime::SpecType enum members. They have the same names so as to
> indicate the close connection between them and the enum members.
Sounds like they'll benefit from implicit calls, say, in about 10
years :-)
http://en.wikipedia.org/wiki/C++0x#Implicit_function_call
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070609/dbf6a69c/attachment.sig>
More information about the kde-core-devel
mailing list