Commit da1347aa authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

Initializations should be in cpp file

parent 935d91da
......@@ -32,6 +32,9 @@
#include <qjson/serializer.h>
#include <qjson/qobjecthelper.h>
const QCA::EncryptionAlgorithm NetworkPackage::EncryptionAlgorithm = QCA::EME_PKCS1v15;
const int NetworkPackage::ProtocolVersion = 3;
NetworkPackage::NetworkPackage(const QString& type)
{
mId = QString::number(QDateTime::currentMSecsSinceEpoch());
......
......@@ -44,8 +44,8 @@ class NetworkPackage : public QObject
public:
const static QCA::EncryptionAlgorithm EncryptionAlgorithm = QCA::EME_PKCS1v15;
const static int ProtocolVersion = 3;
const static QCA::EncryptionAlgorithm EncryptionAlgorithm;
const static int ProtocolVersion;
NetworkPackage(const QString& type);
......
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