mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4683 clang-format on all files in ApplicationCode
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user