Исправлено возвращаемое значение

This commit is contained in:
Andrei Astafev 2021-03-26 11:09:58 +03:00
parent 668af95136
commit 5dff256613

View File

@ -241,10 +241,10 @@ MYXLIB_INLINE bool Paths::makeDefaultSystemDirectories()
bool status = true;
QDir dir;
if ( dir.mkpath( m_systemConfigDirectory ) ) { status = false; }
if ( dir.mkpath( m_systemVarDataDirectory ) ) { status = false; }
if ( dir.mkpath( m_systemConstDataDirectory ) ) { status = false; }
if ( dir.mkpath( m_systemLogDirectory ) ) { status = false; }
if ( !dir.mkpath( m_systemConfigDirectory ) ) { status = false; }
if ( !dir.mkpath( m_systemVarDataDirectory ) ) { status = false; }
if ( !dir.mkpath( m_systemConstDataDirectory ) ) { status = false; }
if ( !dir.mkpath( m_systemLogDirectory ) ) { status = false; }
return( status );
}
@ -255,10 +255,10 @@ MYXLIB_INLINE bool Paths::makeDefaultUserDirectories()
bool status = true;
QDir dir;
if ( dir.mkpath( m_userConfigDirectory ) ) { status = false; }
if ( dir.mkpath( m_userVarDataDirectory ) ) { status = false; }
if ( dir.mkpath( m_userConstDataDirectory ) ) { status = false; }
if ( dir.mkpath( m_userLogDirectory ) ) { status = false; }
if ( !dir.mkpath( m_userConfigDirectory ) ) { status = false; }
if ( !dir.mkpath( m_userVarDataDirectory ) ) { status = false; }
if ( !dir.mkpath( m_userConstDataDirectory ) ) { status = false; }
if ( !dir.mkpath( m_userLogDirectory ) ) { status = false; }
return( status );
}