Инициализация по умолчанию в конструкторе

This commit is contained in:
Andrei Astafev 2021-06-16 11:43:13 +03:00
parent 9468f95dd3
commit a368091252
2 changed files with 3 additions and 2 deletions

View File

@ -18,8 +18,6 @@ int main( int argc, char** argv )
QCoreApplication::setApplicationName( QStringLiteral( CMLIB_PROJECT_NAME ) );
MF::Paths& paths = MF::Paths::instance();
paths.init();
qDebug() << "prefixDirectory : " << paths.projectDirectory();
qDebug() << "executableName : " << paths.executableName();

View File

@ -22,6 +22,9 @@ MYXLIB_INLINE Paths::Paths() :
m_executableName = currentExecutable.fileName();
m_executableFilePath = currentExecutable.absoluteFilePath();
m_executableDirectory = currentExecutable.absolutePath();
// Инициализация значениями по умолчанию
init();
}