Fix build with MSVC.

This commit is contained in:
Roman Telezhynskyi 2021-09-16 14:18:36 +03:00
parent c8fe39dde8
commit a9b1bebb9e
3 changed files with 4 additions and 4 deletions

View File

@ -397,7 +397,7 @@ void VPApplication::InitOptions()
LoadTranslation(QLocale().name());// By default the console version uses system locale LoadTranslation(QLocale().name());// By default the console version uses system locale
VPCommandLine::Instance(*this); VPCommandLine::Instance();
static const char * GENERIC_ICON_TO_CHECK = "document-open"; static const char * GENERIC_ICON_TO_CHECK = "document-open";
if (QIcon::hasThemeIcon(GENERIC_ICON_TO_CHECK) == false) if (QIcon::hasThemeIcon(GENERIC_ICON_TO_CHECK) == false)

View File

@ -116,9 +116,9 @@ VPCommandLine::VPCommandLine():
} }
//------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------
VPCommandLinePtr VPCommandLine::Instance(const QCoreApplication &app) VPCommandLinePtr VPCommandLine::Instance()
{ {
VPCommandLine::ProcessInstance(instance, app.arguments()); VPCommandLine::ProcessInstance(instance, QCoreApplication::arguments());
return instance; return instance;
} }

View File

@ -68,7 +68,7 @@ protected:
VPCommandLine(); VPCommandLine();
/** @brief create the single instance of the class inside vpapplication */ /** @brief create the single instance of the class inside vpapplication */
static VPCommandLinePtr Instance(const QCoreApplication &app); static VPCommandLinePtr Instance();
static void ProcessInstance(VPCommandLinePtr &instance, const QStringList &arguments); static void ProcessInstance(VPCommandLinePtr &instance, const QStringList &arguments);
private: private:
Q_DISABLE_COPY(VPCommandLine) Q_DISABLE_COPY(VPCommandLine)