diff options
author | Michael Goddard <michael.goddard@nokia.com> | 2010-03-19 13:49:26 +1000 |
---|---|---|
committer | Michael Goddard <michael.goddard@nokia.com> | 2010-03-19 14:04:02 +1000 |
commit | a63c44442958b3ee576b77e333e3418ceaf8a008 (patch) | |
tree | 5a2f33a327cc7e6142d9331315ed4eb1681e4c33 /src/contacts/details/qcontactaddress.h | |
parent | ccb26cb705601acba109288acec7c5149a8dca44 (diff) |
Rename Latin1Literal to QLatin1Constant.
And make sure the equality checks are a little more performant.
Diffstat (limited to 'src/contacts/details/qcontactaddress.h')
-rw-r--r-- | src/contacts/details/qcontactaddress.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/contacts/details/qcontactaddress.h b/src/contacts/details/qcontactaddress.h index 7b89a201e7..ef960b245b 100644 --- a/src/contacts/details/qcontactaddress.h +++ b/src/contacts/details/qcontactaddress.h @@ -70,17 +70,17 @@ public: const char* SubTypeInternational; #else Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactAddress, "Address") - Q_DECLARE_LATIN1_LITERAL(FieldStreet, "Street"); - Q_DECLARE_LATIN1_LITERAL(FieldLocality, "Locality"); - Q_DECLARE_LATIN1_LITERAL(FieldRegion, "Region"); - Q_DECLARE_LATIN1_LITERAL(FieldPostcode, "Postcode"); - Q_DECLARE_LATIN1_LITERAL(FieldCountry, "Country"); - Q_DECLARE_LATIN1_LITERAL(FieldSubTypes, "SubTypes"); - Q_DECLARE_LATIN1_LITERAL(FieldPostOfficeBox, "PostOfficeBox"); - Q_DECLARE_LATIN1_LITERAL(SubTypeParcel, "Parcel"); - Q_DECLARE_LATIN1_LITERAL(SubTypePostal, "Postal"); - Q_DECLARE_LATIN1_LITERAL(SubTypeDomestic, "Domestic"); - Q_DECLARE_LATIN1_LITERAL(SubTypeInternational, "International"); + Q_DECLARE_LATIN1_CONSTANT(FieldStreet, "Street"); + Q_DECLARE_LATIN1_CONSTANT(FieldLocality, "Locality"); + Q_DECLARE_LATIN1_CONSTANT(FieldRegion, "Region"); + Q_DECLARE_LATIN1_CONSTANT(FieldPostcode, "Postcode"); + Q_DECLARE_LATIN1_CONSTANT(FieldCountry, "Country"); + Q_DECLARE_LATIN1_CONSTANT(FieldSubTypes, "SubTypes"); + Q_DECLARE_LATIN1_CONSTANT(FieldPostOfficeBox, "PostOfficeBox"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeParcel, "Parcel"); + Q_DECLARE_LATIN1_CONSTANT(SubTypePostal, "Postal"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeDomestic, "Domestic"); + Q_DECLARE_LATIN1_CONSTANT(SubTypeInternational, "International"); #endif void setStreet(const QString& street) {setValue(FieldStreet, street);} |