summaryrefslogtreecommitdiffstats
path: root/tests/manual/textrendering/textperformance/main.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <[email protected]>2020-08-06 08:47:37 +0200
committerEskil Abrahamsen Blomfeldt <[email protected]>2020-08-06 11:43:24 +0200
commit76068d0114157c6b59523f3fb032cd8de64e9a63 (patch)
tree2dfe4e31b17ca2768eb7248760a86513128024ea /tests/manual/textrendering/textperformance/main.cpp
parentb7a1bd306443e4f932a96020c1d48418916237ea (diff)
Make QFontDatabase member functions static
QFontDatabase is a singleton and all instances would share a single, mutex-protected global data pointer. But some functions were implemented as non-static functions. This caused a lot of code on the form QFontDatabase().families(...) since there was no static access. Other functions were implemented as static. To consolidate, we make all functions static. This should be source-compatible, but not binary compatible. [ChangeLog][QtGui][Fonts] Some functions in QFontDatabase were in principle static, but previously not implemented as such. All member functions have now been made static, so that constructing objects of QFontDatabase is no longer necessary to access certain functionality. Fixes: QTBUG-83284 Change-Id: Ifd8c15016281c71f631b53387402c942cd9c43f6 Reviewed-by: Konstantin Ritt <[email protected]>
Diffstat (limited to 'tests/manual/textrendering/textperformance/main.cpp')
-rw-r--r--tests/manual/textrendering/textperformance/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/textrendering/textperformance/main.cpp b/tests/manual/textrendering/textperformance/main.cpp
index 8fb3a3c4a27..9d238ad4204 100644
--- a/tests/manual/textrendering/textperformance/main.cpp
+++ b/tests/manual/textrendering/textperformance/main.cpp
@@ -152,7 +152,7 @@ public:
{
static QStringList samples;
if (samples.isEmpty()) {
- foreach (const QFontDatabase::WritingSystem system, QFontDatabase().writingSystems())
+ foreach (const QFontDatabase::WritingSystem system, QFontDatabase::writingSystems())
if (system != QFontDatabase::Ogham && system != QFontDatabase::Runic)
samples.append(QFontDatabase::writingSystemSample(system));
}