Initialize class/struct variables with default values in core/ and drivers/
This commit is contained in:
@ -112,5 +112,4 @@ void AESContext::_bind_methods() {
|
||||
}
|
||||
|
||||
AESContext::AESContext() {
|
||||
mode = MODE_MAX;
|
||||
}
|
||||
|
||||
@ -47,7 +47,7 @@ public:
|
||||
};
|
||||
|
||||
private:
|
||||
Mode mode;
|
||||
Mode mode = MODE_MAX;
|
||||
CryptoCore::AESContext ctx;
|
||||
PackedByteArray iv;
|
||||
|
||||
|
||||
@ -37,7 +37,7 @@ class CryptoCore {
|
||||
public:
|
||||
class MD5Context {
|
||||
private:
|
||||
void *ctx; // To include, or not to include...
|
||||
void *ctx = nullptr; // To include, or not to include...
|
||||
|
||||
public:
|
||||
MD5Context();
|
||||
@ -50,7 +50,7 @@ public:
|
||||
|
||||
class SHA1Context {
|
||||
private:
|
||||
void *ctx; // To include, or not to include...
|
||||
void *ctx = nullptr; // To include, or not to include...
|
||||
|
||||
public:
|
||||
SHA1Context();
|
||||
@ -63,7 +63,7 @@ public:
|
||||
|
||||
class SHA256Context {
|
||||
private:
|
||||
void *ctx; // To include, or not to include...
|
||||
void *ctx = nullptr; // To include, or not to include...
|
||||
|
||||
public:
|
||||
SHA256Context();
|
||||
@ -76,7 +76,7 @@ public:
|
||||
|
||||
class AESContext {
|
||||
private:
|
||||
void *ctx; // To include, or not to include...
|
||||
void *ctx = nullptr; // To include, or not to include...
|
||||
|
||||
public:
|
||||
AESContext();
|
||||
|
||||
@ -45,7 +45,7 @@ public:
|
||||
|
||||
private:
|
||||
void *ctx = nullptr;
|
||||
HashType type;
|
||||
HashType type = HASH_MD5;
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
||||
Reference in New Issue
Block a user