瀏覽代碼

Kernel: Make clang(?) happy about templates(?)

This caused some issues with QtCreator, and since it's not wrong and improves
readability very slightly, I adopt it.
Ben Wiederhake 4 年之前
父節點
當前提交
719cb93a1a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Kernel/Random.h

+ 2 - 2
Kernel/Random.h

@@ -46,9 +46,9 @@ public:
     constexpr static size_t reseed_threshold = 16;
     constexpr static size_t reseed_threshold = 16;
 
 
     using CipherType = CipherT;
     using CipherType = CipherT;
-    using BlockType = CipherT::BlockType;
+    using BlockType = typename CipherT::BlockType;
     using HashType = HashT;
     using HashType = HashT;
-    using DigestType = HashT::DigestType;
+    using DigestType = typename HashT::DigestType;
 
 
     FortunaPRNG()
     FortunaPRNG()
         : m_counter(ByteBuffer::create_zeroed(BlockType::block_size()))
         : m_counter(ByteBuffer::create_zeroed(BlockType::block_size()))