summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qcollator_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/text/qcollator_p.h')
-rw-r--r--src/corelib/text/qcollator_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/text/qcollator_p.h b/src/corelib/text/qcollator_p.h
index 6da153cdf0..b96cdbaa32 100644
--- a/src/corelib/text/qcollator_p.h
+++ b/src/corelib/text/qcollator_p.h
@@ -74,6 +74,12 @@ public:
collator = NoCollator;
}
+ void ensureInitialized()
+ {
+ if (dirty)
+ init();
+ }
+
// Implemented by each back-end, in its own way:
void init();
void cleanup();