Fix build with MSVC.
This commit is contained in:
parent
c8fe39dde8
commit
a9b1bebb9e
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user