diff options
author | Chris Adams <chris.adams@qinetic.com.au> | 2018-10-02 16:23:04 +1000 |
---|---|---|
committer | Christopher Adams <chris.adams@jollamobile.com> | 2018-10-26 08:41:45 +0000 |
commit | 189bc66734adf753b24b8b175125afb401eaa835 (patch) | |
tree | 24fd443b22029badf98eb49df042045cf0b1bb9a | |
parent | 0d38970b211d506ff096148aea3a6b2d6a975789 (diff) |
Fix bug in QRegularExpression usage
The separator pattern can be different depending on the format of
the data given as input to the method, so the regexp cannot be
instantiated as a method static variable.
Change-Id: I0346956316795ed22246a8cb6ce24f5d1337bf51
Reviewed-by: Damien Caliste <dcaliste@free.fr>
Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
-rw-r--r-- | src/versit/qvcard21writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/versit/qvcard21writer.cpp b/src/versit/qvcard21writer.cpp index 473fdafcd..a890c208b 100644 --- a/src/versit/qvcard21writer.cpp +++ b/src/versit/qvcard21writer.cpp @@ -98,7 +98,7 @@ void QVCard21Writer::encodeVersitProperty(const QVersitProperty& property) separator = QStringLiteral(","); } QString replacement = QLatin1Char('\\') + separator; - static const QRegularExpression separatorRegex(separator); + const QRegularExpression separatorRegex(separator); // Check first if any of the values need to be UTF-8 encoded (if so, all of them must be // UTF-8 encoded) |