#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

@@ -23,7 +23,7 @@
#include <QDir>
CAF_PDM_SOURCE_INIT(RicfSetExportFolder, "setExportFolder");
CAF_PDM_SOURCE_INIT( RicfSetExportFolder, "setExportFolder" );
//--------------------------------------------------------------------------------------------------
///
@@ -42,24 +42,24 @@ RicfSetExportFolder::RicfSetExportFolder()
//--------------------------------------------------------------------------------------------------
RicfCommandResponse RicfSetExportFolder::execute()
{
if (m_createFolder)
if ( m_createFolder )
{
QDir dir;
if (!dir.exists(m_path))
if ( !dir.exists( m_path ) )
{
dir.mkpath(m_path);
dir.mkpath( m_path );
if (!dir.exists(m_path))
if ( !dir.exists( m_path ) )
{
QString error = QString("Could not create folder : %1").arg(m_path);
RiaLogging::error(error);
return RicfCommandResponse(RicfCommandResponse::COMMAND_ERROR, error);
QString error = QString( "Could not create folder : %1" ).arg( m_path );
RiaLogging::error( error );
return RicfCommandResponse( RicfCommandResponse::COMMAND_ERROR, error );
}
}
}
RicfCommandFileExecutor* executor = RicfCommandFileExecutor::instance();
executor->setExportPath(m_type(), m_path);
executor->setExportPath( m_type(), m_path );
return RicfCommandResponse();
}