Инициализация по умолчанию в конструкторе
This commit is contained in:
parent
9468f95dd3
commit
a368091252
@ -18,8 +18,6 @@ int main( int argc, char** argv )
|
|||||||
QCoreApplication::setApplicationName( QStringLiteral( CMLIB_PROJECT_NAME ) );
|
QCoreApplication::setApplicationName( QStringLiteral( CMLIB_PROJECT_NAME ) );
|
||||||
MF::Paths& paths = MF::Paths::instance();
|
MF::Paths& paths = MF::Paths::instance();
|
||||||
|
|
||||||
paths.init();
|
|
||||||
|
|
||||||
qDebug() << "prefixDirectory : " << paths.projectDirectory();
|
qDebug() << "prefixDirectory : " << paths.projectDirectory();
|
||||||
|
|
||||||
qDebug() << "executableName : " << paths.executableName();
|
qDebug() << "executableName : " << paths.executableName();
|
||||||
|
@ -22,6 +22,9 @@ MYXLIB_INLINE Paths::Paths() :
|
|||||||
m_executableName = currentExecutable.fileName();
|
m_executableName = currentExecutable.fileName();
|
||||||
m_executableFilePath = currentExecutable.absoluteFilePath();
|
m_executableFilePath = currentExecutable.absoluteFilePath();
|
||||||
m_executableDirectory = currentExecutable.absolutePath();
|
m_executableDirectory = currentExecutable.absolutePath();
|
||||||
|
|
||||||
|
// Инициализация значениями по умолчанию
|
||||||
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user