mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 03:15:34 +08:00
Fixed clazy warnings: unused QString.
This commit is contained in:
@@ -377,7 +377,6 @@ namespace BlackCore
|
|||||||
|
|
||||||
const QUrl url(nwReply->url());
|
const QUrl url(nwReply->url());
|
||||||
const QString urlString(url.toString());
|
const QString urlString(url.toString());
|
||||||
const QString replyMessage(nwReply->errorString());
|
|
||||||
|
|
||||||
if (nwReply->error() == QNetworkReply::NoError)
|
if (nwReply->error() == QNetworkReply::NoError)
|
||||||
{
|
{
|
||||||
@@ -464,7 +463,6 @@ namespace BlackCore
|
|||||||
|
|
||||||
const QUrl url(nwReply->url());
|
const QUrl url(nwReply->url());
|
||||||
const QString urlString(url.toString());
|
const QString urlString(url.toString());
|
||||||
const QString replyMessage(nwReply->errorString());
|
|
||||||
|
|
||||||
if (nwReply->error() == QNetworkReply::NoError)
|
if (nwReply->error() == QNetworkReply::NoError)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -126,7 +126,6 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CSettingsFontComponent::initUiValues(const QFont &font, const QColor &color)
|
void CSettingsFontComponent::initUiValues(const QFont &font, const QColor &color)
|
||||||
{
|
{
|
||||||
const QString family = font.family();
|
|
||||||
ui->cb_SettingsGuiFontStyle->setCurrentText(CStyleSheetUtility::fontAsCombinedWeightStyle(font));
|
ui->cb_SettingsGuiFontStyle->setCurrentText(CStyleSheetUtility::fontAsCombinedWeightStyle(font));
|
||||||
ui->cb_SettingsGuiFont->setCurrentFont(font);
|
ui->cb_SettingsGuiFont->setCurrentFont(font);
|
||||||
ui->cb_SettingsGuiFontSize->setCurrentText(QString::number(font.pointSize()));
|
ui->cb_SettingsGuiFontSize->setCurrentText(QString::number(font.pointSize()));
|
||||||
|
|||||||
@@ -498,12 +498,15 @@ namespace BlackMisc
|
|||||||
// - type
|
// - type
|
||||||
// - value
|
// - value
|
||||||
if (object.size() != 1) { return object; } // no cache format
|
if (object.size() != 1) { return object; } // no cache format
|
||||||
const QString key = object.constBegin().key();
|
|
||||||
const QJsonObject cacheObject = object.constBegin()->toObject();
|
const QJsonObject cacheObject = object.constBegin()->toObject();
|
||||||
if (cacheObject.contains("type") && cacheObject.contains("value"))
|
if (cacheObject.contains("type") && cacheObject.contains("value"))
|
||||||
{
|
{
|
||||||
const QString type = cacheObject.value("type").toString(); // just to verify in debugger
|
#ifdef QT_DEBUG
|
||||||
|
const QString key = object.constBegin().key(); // clazy:exclude=unused-non-trivial-variable
|
||||||
|
const QString type = cacheObject.value("type").toString(); // clazy:exclude=unused-non-trivial-variable
|
||||||
|
Q_UNUSED(key);
|
||||||
Q_UNUSED(type);
|
Q_UNUSED(type);
|
||||||
|
#endif
|
||||||
return cacheObject.value("value").toObject();
|
return cacheObject.value("value").toObject();
|
||||||
}
|
}
|
||||||
return object;
|
return object;
|
||||||
|
|||||||
Reference in New Issue
Block a user