QSysInfo: remove unneeded assert

Change-Id: I850aeb2acf569c42fd15df860d9724d8e7e236ee
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Sona Kurazyan 2022-09-21 16:54:22 +02:00
parent 767beb7fff
commit 3535f46374
1 changed files with 1 additions and 3 deletions

View File

@ -232,10 +232,8 @@ static QString unquote(const char *begin, const char *end)
// All strings should be in UTF-8 format, and non-printable
// characters should not be used. It is not supported to
// concatenate multiple individually quoted strings.
if (*begin == '"') {
Q_ASSERT(end[-1] == '"');
if (*begin == '"')
return QString::fromUtf8(begin + 1, end - begin - 2);
}
return QString::fromUtf8(begin, end - begin);
}
static QByteArray getEtcFileContent(const char *filename)