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
VPCommandLine::Instance(*this);
VPCommandLine::Instance();
static const char * GENERIC_ICON_TO_CHECK = "document-open";
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;
}

View file

@ -68,7 +68,7 @@ protected:
VPCommandLine();
/** @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);
private:
Q_DISABLE_COPY(VPCommandLine)