Commit 31accc5d authored by Leander Schulten's avatar Leander Schulten
Browse files

Change the value Type from long to long long, because Windows has 32 bit longs...

Change the value Type from long to long long, because Windows has 32 bit longs ans 64 bit long longs -.-
parent f55c8a9c
#include "id.h"
long ID::lastID = QDateTime::currentMSecsSinceEpoch();
long long ID::lastID = QDateTime::currentMSecsSinceEpoch();
ID::ID(const QJsonObject &o):id(o["id"].toString().toLong()){
ID::ID(const QJsonObject &o):id(o["id"].toString().toLongLong()){
}
......
......@@ -13,7 +13,7 @@
class ID{
friend class SyncService;
private:
static long lastID;
static long long lastID;
public:
/**
* @brief generateNew Erstellt eine neue ID
......@@ -23,8 +23,8 @@ public:
return ++lastID;
}
private:
const long id;
ID(const long id):id(id){}
const long long id;
ID(const long long id):id(id){}
public:
ID():id(++lastID){}
long value()const{return id;}
......
Supports Markdown
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