diff options
author | Xie Chuan <xiechuan@uniontech.com> | 2020-09-25 14:36:29 +0800 |
---|---|---|
committer | Xie Chuan <xiechuan@uniontech.com> | 2020-09-30 14:55:32 +0800 |
commit | 9af32d701995558cea83f0deb391aa44a6e47a1f (patch) | |
tree | 090efd84835c3390d190277ea8ed614d14ad3b0f /src | |
parent | 426308a93bc4ab52faa40fe53d3c0e52fce4072c (diff) |
Eliminate compilation warnings
When converting a const variable to a non-const variable, use the conversion operator 
Change-Id: Ib1c8f3defbf9ccce1af5c90e7e9c508bc8c039d0
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/text/qstring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index 588054ef4b..2171a1bc71 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -7644,7 +7644,7 @@ static QString replaceArgEscapes(QStringView s, const ArgEscapeData &d, int fiel *qMax(abs_field_width, larg.length()); QString result(result_len, Qt::Uninitialized); - QChar *result_buff = (QChar*) result.unicode(); + QChar *result_buff = const_cast<QChar *>(result.unicode()); QChar *rc = result_buff; const QChar *c = uc_begin; |