From a3680912523dec707347843f42acb684ca5c7931 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Wed, 16 Jun 2021 11:43:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=BD=D0=B8=D1=86=D0=B8=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=20=D0=BF=D0=BE=20=D1=83?= =?UTF-8?q?=D0=BC=D0=BE=D0=BB=D1=87=D0=B0=D0=BD=D0=B8=D1=8E=20=D0=B2=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D1=81=D1=82=D1=80=D1=83=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/filesystem/01_paths/paths.cpp | 2 -- src/myx/filesystem/paths.cpp | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/filesystem/01_paths/paths.cpp b/examples/filesystem/01_paths/paths.cpp index 8c28d19..76e550b 100644 --- a/examples/filesystem/01_paths/paths.cpp +++ b/examples/filesystem/01_paths/paths.cpp @@ -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(); diff --git a/src/myx/filesystem/paths.cpp b/src/myx/filesystem/paths.cpp index d94273e..c60ee1e 100644 --- a/src/myx/filesystem/paths.cpp +++ b/src/myx/filesystem/paths.cpp @@ -22,6 +22,9 @@ MYXLIB_INLINE Paths::Paths() : m_executableName = currentExecutable.fileName(); m_executableFilePath = currentExecutable.absoluteFilePath(); m_executableDirectory = currentExecutable.absolutePath(); + + // Инициализация значениями по умолчанию + init(); }