aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roomtombstoneevent.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-18 11:43:32 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-18 11:43:55 +0100
commitc7907084282c7957d085acb329574ab6a7d593c8 (patch)
tree5d776c45754fa81f61aaebf2398ab6e4859c5461 /lib/events/roomtombstoneevent.cpp
parent1010c8d0009293a6ae357c23e8b4732302b6b8bd (diff)
downloadlibquotient-c7907084282c7957d085acb329574ab6a7d593c8.tar.gz
libquotient-c7907084282c7957d085acb329574ab6a7d593c8.zip
Move over non-interface code to QLatin1String
It's better than const char* because any interaction between const char* and QString assumes that const char* contains UTF-8, which is pessimistic and therefore inefficient; at the same time: - construction of QString from QLatin1String is extremely fast (boiling down to padding null bytes) - "something"_ls is much shorter than QStringLiteral("something") - "something"_ls produces a direct pointer to the literal at compile time, using the benefits of raw string literals (deduplication, e.g.) The library API will also transition to QLatin1String where applicable, likely in 0.8.
Diffstat (limited to 'lib/events/roomtombstoneevent.cpp')
0 files changed, 0 insertions, 0 deletions