diff options
author | hjk <hjk@qt.io> | 2023-11-20 10:55:51 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2023-11-20 13:49:13 +0000 |
commit | 18bbffddb49cbf1b6643db952907005369cc2523 (patch) | |
tree | 529f24462377b03234ca2a31ecd990b6d93be256 /src/shared | |
parent | f163a4f9a194abeb10021a6d6706275d57b01261 (diff) |
Proparser: Silence compiler warning
/data/dev/creator/src/shared/proparser/proitems.cpp:226:17: warning: variable 'totalLength' set but not used [-Wunused-but-set-variable]
int totalLength = sz - startIdx;
Change-Id: I64028926c5af69d2692c977d60c233b5404712ed
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/proparser/proitems.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/shared/proparser/proitems.cpp b/src/shared/proparser/proitems.cpp index 4a5108f925..57b894396f 100644 --- a/src/shared/proparser/proitems.cpp +++ b/src/shared/proparser/proitems.cpp @@ -223,14 +223,9 @@ ProString &ProString::append(const ProStringList &other, bool *pending, bool ski if (!m_length && sz == startIdx + 1) { *this = other.at(startIdx); } else { - int totalLength = sz - startIdx; - for (int i = startIdx; i < sz; ++i) - totalLength += other.at(i).size(); bool putSpace = false; if (pending && !*pending && m_length) putSpace = true; - else - totalLength--; m_string = toQString(); m_offset = 0; |