Skip to content

Commit eec4cfa

Browse files
committed
More minor conformancy changes
1 parent 8a70e0b commit eec4cfa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/network/src/qx-downloadmanager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ void AsyncDownloadManager::downloadProgressHandler(qint64 bytesCurrent, qint64 b
582582
DownloadTask task = mActiveTasks.value(senderNetworkReply);
583583

584584
// Update total size if needed
585-
if(bytesTotal != 0 && mTotalBytes.value(task) != bytesTotal)
585+
if(bytesTotal != 0 && mTotalBytes.value(task) != static_cast<quint64>(bytesTotal))
586586
{
587587
mTotalBytes.setValue(task, bytesTotal);
588588
emit downloadTotalChanged(mTotalBytes.total());

lib/widgets/src/qx-common-widgets_p.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Qx
77
void prepareErrorPostBox(const Error& error, QMessageBox& msgBox)
88
{
99
// Determine icon
10-
QMessageBox::Icon icon;
10+
QMessageBox::Icon icon{}; // Default init to silence "uninitialized" warning
1111

1212
switch(error.severity())
1313
{
@@ -22,6 +22,8 @@ void prepareErrorPostBox(const Error& error, QMessageBox& msgBox)
2222
case Severity::Critical:
2323
icon = QMessageBox::Critical;
2424
break;
25+
default:
26+
qFatal("Unhandled error severity!");
2527
}
2628

2729
// Prepare dialog

0 commit comments

Comments
 (0)