diff options
author | Samuel Gaist <samuel.gaist@idiap.ch> | 2018-08-04 22:55:16 +0200 |
---|---|---|
committer | Samuel Gaist <samuel.gaist@idiap.ch> | 2018-08-06 06:33:46 +0000 |
commit | b18329691336b6276407db8eee2ecd196aa8dddc (patch) | |
tree | 27bb764dd46cb8a500b7d9fff24ccdb663c13a20 /src/versit/qvcard21writer.cpp | |
parent | 49b80e6c4f7a31161bd7c559548c246d31733f26 (diff) |
Migrate QVCard(21|30)Writer classes to use QRegularExpression
This patch updates the QVCard21Writer and QVCard30Writer classes to use
QRegularExpression in place of QRegExp which is to be considered
deprecated.
Change-Id: Icced174d9cc39cd6bbf75eabb2c832e828aac2a5
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/versit/qvcard21writer.cpp')
-rw-r--r-- | src/versit/qvcard21writer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/versit/qvcard21writer.cpp b/src/versit/qvcard21writer.cpp index 4361dedcc..473fdafcd 100644 --- a/src/versit/qvcard21writer.cpp +++ b/src/versit/qvcard21writer.cpp @@ -39,6 +39,7 @@ #include "qvcard21writer_p.h" +#include <QtCore/qregularexpression.h> #include <QtCore/qtextcodec.h> #include <QtCore/qvariant.h> @@ -97,7 +98,7 @@ void QVCard21Writer::encodeVersitProperty(const QVersitProperty& property) separator = QStringLiteral(","); } QString replacement = QLatin1Char('\\') + separator; - QRegExp separatorRegex = QRegExp(separator); + static 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) |