Procházet zdrojové kódy

Use static const instead of const static

Zach Hilman před 8 roky
rodič
revize
9d59b96ef9
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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,
     void AttemptLoadKeyFile(std::string_view dir1, std::string_view dir2, std::string_view filename,
                             bool title);
                             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
 } // namespace Core::Crypto