Explorar el Código

Use static const instead of const static

Zach Hilman hace 8 años
padre
commit
9d59b96ef9
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/core/crypto/key_manager.h

+ 2 - 2
src/core/crypto/key_manager.h

@@ -111,7 +111,7 @@ private:
     void AttemptLoadKeyFile(std::string_view dir1, std::string_view dir2, std::string_view filename,
                             bool title);
 
-    const static std::unordered_map<std::string, KeyIndex<S128KeyType>> s128_file_id;
-    const static std::unordered_map<std::string, KeyIndex<S256KeyType>> s256_file_id;
+    static const std::unordered_map<std::string, KeyIndex<S128KeyType>> s128_file_id;
+    static const std::unordered_map<std::string, KeyIndex<S256KeyType>> s256_file_id;
 };
 } // namespace Core::Crypto