#4683 clang-format on all files in ApplicationCode

This commit is contained in:
Magne Sjaastad
2019-09-06 10:40:57 +02:00
parent 3a317504bb
commit fe9e567825
2092 changed files with 117952 additions and 111846 deletions

View File

@@ -27,14 +27,14 @@
#include <QDir>
#include <QFileInfo>
CAF_PDM_SOURCE_INIT(RicfOpenProject, "openProject");
CAF_PDM_SOURCE_INIT( RicfOpenProject, "openProject" );
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicfOpenProject::RicfOpenProject()
{
RICF_InitField(&m_path, "path", QString(), "Path", "", "", "");
RICF_InitField( &m_path, "path", QString(), "Path", "", "", "" );
}
//--------------------------------------------------------------------------------------------------
@@ -42,27 +42,27 @@ RicfOpenProject::RicfOpenProject()
//--------------------------------------------------------------------------------------------------
RicfCommandResponse RicfOpenProject::execute()
{
QString projectPath = m_path;
QFileInfo projectPathInfo(projectPath);
if (!projectPathInfo.exists())
QString projectPath = m_path;
QFileInfo projectPathInfo( projectPath );
if ( !projectPathInfo.exists() )
{
QDir startDir(RiaApplication::instance()->startDir());
projectPath = startDir.absoluteFilePath(m_path);
QDir startDir( RiaApplication::instance()->startDir() );
projectPath = startDir.absoluteFilePath( m_path );
}
bool ok = RiaApplication::instance()->loadProject(projectPath);
if (!ok)
bool ok = RiaApplication::instance()->loadProject( projectPath );
if ( !ok )
{
QString errMsg = QString("openProject: Unable to open project at %1").arg(m_path());
RiaLogging::error(errMsg);
return RicfCommandResponse(RicfCommandResponse::COMMAND_ERROR, errMsg);
QString errMsg = QString( "openProject: Unable to open project at %1" ).arg( m_path() );
RiaLogging::error( errMsg );
return RicfCommandResponse( RicfCommandResponse::COMMAND_ERROR, errMsg );
}
if (RiaRegressionTestRunner::instance()->isRunningRegressionTests())
if ( RiaRegressionTestRunner::instance()->isRunningRegressionTests() )
{
RiaRegressionTestRunner::regressionTestConfigureProject();
}
RicfCommandFileExecutor::instance()->setLastProjectPath(projectPath);
RicfCommandFileExecutor::instance()->setLastProjectPath( projectPath );
return RicfCommandResponse();
}