Explorar el Código

unintialized variable cleanups

AzaezelX hace 4 meses
padre
commit
76b33ab57b
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 1 1
      Engine/source/console/runtime.h
  2. 2 2
      Engine/source/core/util/tDictionary.h

+ 1 - 1
Engine/source/console/runtime.h

@@ -12,7 +12,7 @@ namespace Con
       String error;
 
    public:
-      EvalResult() {}
+      EvalResult() { valid = false;  error = ""; }
 
       EvalResult(ConsoleValue pValue)
       {

+ 2 - 2
Engine/source/core/util/tDictionary.h

@@ -179,8 +179,8 @@ class HashTable
 public:
    struct Pair
    {
-      Key  key;
-      Value value;
+      Key  key{};
+      Value value{};
       Pair() {}
       Pair(Key k,Value v)
          :  key(k),