fix a compiler warning

about reaching end of non-void function
This commit is contained in:
Joachim Schmitz 2019-12-05 16:08:55 +01:00
parent a6c04d4949
commit cf211fd3b2

View file

@ -75,9 +75,7 @@ bool ExtensionFileSize::operator<(const QTableWidgetItem& nextItem) const
int ExtensionFileSize::int2size(QChar sizeType, int i)
{
if (sizeType == QChar(' ')) // the size is written as bytes
return i;
else if (sizeType == QChar('K')) // the size is written as kilobytes, and so on
if (sizeType == QChar('K')) // the size is written as kilobytes, and so on
return i * 0x400;
else if (sizeType == QChar('M'))
return i * 0x100000;
@ -85,6 +83,8 @@ int ExtensionFileSize::int2size(QChar sizeType, int i)
return i * 0x40000000;
else if (sizeType == QChar('T'))
return i * 0x10000000000;
//else if (sizeType == QChar(' ')) // the size is written as bytes
return i;
}
//---------------------------------------------------------