summaryrefslogtreecommitdiffstats
path: root/src/activeqt/control/qaxfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/activeqt/control/qaxfactory.cpp')
-rw-r--r--src/activeqt/control/qaxfactory.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/activeqt/control/qaxfactory.cpp b/src/activeqt/control/qaxfactory.cpp
index 1f101fe..2a0ed4f 100644
--- a/src/activeqt/control/qaxfactory.cpp
+++ b/src/activeqt/control/qaxfactory.cpp
@@ -113,9 +113,7 @@ QAxFactory::QAxFactory(const QUuid &libid, const QUuid &appid)
/*!
Destroys the QAxFactory object.
*/
-QAxFactory::~QAxFactory()
-{
-}
+QAxFactory::~QAxFactory() = default;
/*!
\fn QUuid QAxFactory::typeLibID() const
@@ -290,9 +288,7 @@ bool QAxFactory::validateLicenseKey(const QString &key, const QString &licenseKe
int lastDot = licFile.lastIndexOf(QLatin1Char('.'));
licFile.truncate(lastDot);
licFile += QLatin1String(".lic");
- if (QFile::exists(licFile))
- return true;
- return false;
+ return QFile::exists(licFile);
}
return licenseKey == classKey;
}
@@ -371,8 +367,6 @@ bool QAxFactory::isServer()
return qAxIsServer;
}
-extern wchar_t qAxModuleFilename[MAX_PATH];
-
/*!
Returns the directory that contains the server binary.
@@ -462,7 +456,7 @@ class ActiveObject : public QObject
{
public:
ActiveObject(QObject *parent, QAxFactory *factory);
- ~ActiveObject();
+ ~ActiveObject() override;
IDispatch *wrapper;
DWORD cookie;