summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/qtcontactsdocsample/qtcontactsdocsample.cpp
diff options
context:
space:
mode:
authorMichael Goddard <michael.goddard@nokia.com>2009-07-13 14:33:29 +1000
committerMichael Goddard <michael.goddard@nokia.com>2009-07-13 14:36:38 +1000
commit74bb718e797d39338c3e97b6c51af48ed189ab52 (patch)
treed31d79c79f3b021e7e769161ba1e8c7e27077f5c /doc/src/snippets/qtcontactsdocsample/qtcontactsdocsample.cpp
parenteb43f1fb336abe6dcd8670867bed5816cbec0abd (diff)
Get rid of static const QStrings.
Since they are non POD, their initialization happens at some indetermine time, and may result in data allocation, codec loading, and other unfortunate (and startup heavy) work. Change to use const char [] arrays, which are read only and shareable (no relocation needed). Only problem is in code that used to concatenate constants - otherwise the QString ctor taking a const char* is effective. One other slight problem would be that it can be difficult to have non ascii string constants (need L"foo" or the like). Contacts library should compile with QT_ASCII_CAST_WARNINGS with no warnings now.
Diffstat (limited to 'doc/src/snippets/qtcontactsdocsample/qtcontactsdocsample.cpp')
0 files changed, 0 insertions, 0 deletions