Commit 981432ec authored by Jan Möbius's avatar Jan Möbius

Fixed windows build

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10524 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1426fe0c
......@@ -193,7 +193,7 @@ bool LicenseManager::authenticate() {
// ===============================================================================================
#ifdef WIN32
QFile coreApp(OpenFlipper::Options::applicationDirStr() + QDir::separator() + "bin" + QDir::separator() + "OpenFlipper.exe");
QFile coreApp(OpenFlipper::Options::applicationDirStr() + QDir::separator() + "OpenFlipper.exe");
#else
QFile coreApp(OpenFlipper::Options::applicationDirStr() + QDir::separator() + "bin" + QDir::separator() + "OpenFlipper");
#endif
......@@ -242,8 +242,8 @@ bool LicenseManager::authenticate() {
// Get all Network Interfaces
QList<QNetworkInterface> interfaces = QNetworkInterface::allInterfaces();
foreach ( QNetworkInterface interface, interfaces ) {
mac = mac + interface.hardwareAddress().remove(":");
foreach ( QNetworkInterface netInterface, interfaces ) {
mac = mac + netInterface.hardwareAddress().remove(":");
}
QString macHash = QCryptographicHash::hash ( mac.toAscii() , QCryptographicHash::Sha1 ).toHex();
......
......@@ -56,14 +56,13 @@
#define LICENSEMANAGER_HH
#include <OpenFlipper/BasePlugin/SecurityInterface.hh>
#include <OpenFlipper/common/GlobalDefines.hh>
/** The salt file has to be provided for each plugin. It can be the same
for all plugins. See example for details on how this file has to be setup
*/
#include "salt.hh"
class DLLEXPORT LicenseManager : public QObject, SecurityInterface {
class LicenseManager : public QObject, SecurityInterface {
Q_OBJECT
Q_INTERFACES(SecurityInterface)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment