Commit b9fedaa4 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Utils: Add missing cast to qreal



Change-Id: I6bbcb2b87b049a67255a66c951464e4eacfb2eeb
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent a54353f3
......@@ -472,7 +472,7 @@ SubDirFileIterator::SubDirFileIterator(const QStringList &directories, const QSt
: m_filters(filters), m_progress(0)
{
m_encoding = (encoding == 0 ? QTextCodec::codecForLocale() : encoding);
qreal maxPer = MAX_PROGRESS/directories.count();
qreal maxPer = qreal(MAX_PROGRESS) / directories.count();
foreach (const QString &directoryEntry, directories) {
if (!directoryEntry.isEmpty()) {
m_dirs.push(QDir(directoryEntry));
......
Supports Markdown
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