Commit 3a7017dd authored by Laurent Montel's avatar Laurent Montel 😁

Fix some warnings

parent 9e782c2f
......@@ -123,7 +123,7 @@ void DataStream::writeRawData(const char *data, int len)
void DataStream::writeBytes(const char *bytes, int len)
{
*this << (quint32) len;
*this << static_cast<quint32> (len);
if (len) {
writeRawData(bytes, len);
}
......
......@@ -141,11 +141,11 @@ QDebug operator<<(QDebug _dbg, Command::Type type)
case Command::_ResponseBit:
Q_ASSERT(false);
return dbg << (int)type;
return dbg << static_cast<int>(type);
}
Q_ASSERT(false);
return dbg << (int)type;
return dbg << static_cast<int>(type);
}
template<typename T>
......
......@@ -110,8 +110,6 @@ QString StandardDirs::saveDir(const char *resource, const QString &relPath)
} else {
qt_assert_x(__FUNCTION__, "Invalid resource type", __FILE__, __LINE__);
}
return {};
}
QString StandardDirs::locateResourceFile(const char *resource, const QString &relPath)
......
......@@ -114,8 +114,8 @@ void ProgressSpinnerDelegate::initStyleOption(QStyleOptionViewItem *option, cons
m_animator->push(index);
if (QStyleOptionViewItem *v4 = qstyleoption_cast<QStyleOptionViewItem *>(option)) {
v4->icon = m_animator->sequenceFrame(index);
if (QStyleOptionViewItem *v = qstyleoption_cast<QStyleOptionViewItem *>(option)) {
v->icon = m_animator->sequenceFrame(index);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment