OSDN Git Service

remove bogus QString::reserve() call in QCss::ValueExtractor::lengthValue()
authorIvailo Monev <xakepa10@gmail.com>
Mon, 20 Sep 2021 22:57:36 +0000 (01:57 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 20 Sep 2021 22:57:36 +0000 (01:57 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/text/qcssparser.cpp

index be43934..32f6109 100644 (file)
@@ -341,7 +341,6 @@ ValueExtractor::ValueExtractor(const QVector<Declaration> &decls, const QPalette
 LengthData ValueExtractor::lengthValue(const Value& v)
 {
     QString s = v.variant.toString();
-    s.reserve(s.length());
     LengthData data;
     data.unit = LengthData::None;
     if (s.endsWith(QLatin1String("px"), Qt::CaseInsensitive))