summaryrefslogtreecommitdiffstats
path: root/src/activeqt/control/qaxserverbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/activeqt/control/qaxserverbase.cpp')
-rw-r--r--src/activeqt/control/qaxserverbase.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/activeqt/control/qaxserverbase.cpp b/src/activeqt/control/qaxserverbase.cpp
index ac52583..d92b9b1 100644
--- a/src/activeqt/control/qaxserverbase.cpp
+++ b/src/activeqt/control/qaxserverbase.cpp
@@ -1,10 +1,6 @@
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-#ifndef NOMINMAX
-# define NOMINMAX
-#endif
-
#include <qabstracteventdispatcher.h>
#include <qapplication.h>
#include <qbuffer.h>
@@ -28,6 +24,7 @@
#include <olectl.h>
#include <private/qcoreapplication_p.h>
#include <qwindow.h>
+#include <private/qpixmap_win_p.h>
#include <qpa/qplatformnativeinterface.h>
#include <qabstractnativeeventfilter.h>
@@ -882,8 +879,7 @@ HRESULT QClassFactory::CreateInstanceHelper(IUnknown *pUnkOuter, REFIID iid, voi
// Make sure a QApplication instance is present (inprocess case)
if (!qApp) {
qax_ownQApp = true;
- static int argc = 0; // static lifetime, since it's passed as reference to QApplication, which has a lifetime exceeding the stack frame
- new QApplication(argc, nullptr);
+ new QApplication(__argc, __argv);
}
QGuiApplication::setQuitOnLastWindowClosed(false);
@@ -3103,8 +3099,6 @@ HRESULT WINAPI QAxServerBase::Save(LPCOLESTR fileName, BOOL fRemember)
return E_FAIL;
}
-Q_GUI_EXPORT HBITMAP qt_pixmapToWinHBITMAP(const QPixmap &p, int hbitmapFormat = 0);
-
//**** IViewObject
/*
Draws the widget into the provided device context.