Clang warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-11-30 12:55:39 +02:00
parent 5bd8c38269
commit 85bb6141ab
5 changed files with 6 additions and 3 deletions

View File

@ -414,6 +414,7 @@ bool MApplication::event(QEvent *e)
return true;
}
}
break;
}
#if defined(Q_OS_MAC)
case QEvent::ApplicationActivate:
@ -428,6 +429,7 @@ bool MApplication::event(QEvent *e)
}
return true;
}
break;
}
#endif //defined(Q_OS_MAC)
default:

View File

@ -628,6 +628,7 @@ bool VApplication::event(QEvent *e)
return true;
}
}
break;
}
#if defined(Q_OS_MAC)
case QEvent::ApplicationActivate:

View File

@ -531,7 +531,7 @@ void DialogLayoutSettings::DialogAccepted()
generator->SetCaseType(GetGroup());
generator->SetPaperHeight(GetPaperHeight());
generator->SetPaperWidth(GetPaperWidth());
generator->SetShift(qFloor(GetShift()));
generator->SetShift(static_cast<quint32>(qFloor(GetShift())));
generator->SetRotate(GetRotate());
generator->SetRotationIncrease(GetIncrease());
generator->SetAutoCrop(GetAutoCrop());

View File

@ -3776,7 +3776,7 @@ void MainWindow::DoExport(const VCommandLinePtr &expParams)
{
DialogSaveLayout dialog(scenes.size(), expParams->OptBaseName(), this);
dialog.SetDestinationPath(expParams->OptDestinationPath());
dialog.SelectFormate(static_cast<quint32>(expParams->OptExportType()));
dialog.SelectFormate(expParams->OptExportType());
ExportLayout(dialog);
}
catch (const VException &e)

View File

@ -40,7 +40,7 @@
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief VException constructor exception
* @param what string with error
* @param error string with error
*/
VException::VException(const QString &error)
:QException(), error(error), moreInfo(QString())