Commit 80018e7b authored by Toni Asensi Esteve's avatar Toni Asensi Esteve

Avoid 'conversion may change value' cases in sizecalculator.cpp and filesystem.cpp

Revision: !31
parent ce871144
......@@ -268,7 +268,7 @@ QString FileSystem::readLinkSafely(const char *path)
// read success
if (nBytesRead < bufferSize || nBytesRead == maxBufferSize) {
return QString::fromLocal8Bit(buffer.get(), nBytesRead);
return QString::fromLocal8Bit(buffer.get(), static_cast<int>(nBytesRead));
}
// increase the buffer and retry again
......
......@@ -180,5 +180,5 @@ void SizeCalculator::done()
void SizeCalculator::emitProgress()
{
emit progressChanged((m_urls.length() - (float)m_nextUrls.length()) / m_urls.length() * 100);
emit progressChanged(((m_urls.length() - m_nextUrls.length()) * 100) / m_urls.length());
}
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