Преглед изворни кода

video_core/memory_manager: Mark the constructor as explicit

Prevents implicit converting constructions of the memory manager.
Lioncash пре 7 година
родитељ
комит
d4bcd006b2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/video_core/memory_manager.h

+ 1 - 1
src/video_core/memory_manager.h

@@ -47,7 +47,7 @@ struct VirtualMemoryArea {
 
 class MemoryManager final {
 public:
-    MemoryManager(VideoCore::RasterizerInterface& rasterizer);
+    explicit MemoryManager(VideoCore::RasterizerInterface& rasterizer);
     ~MemoryManager();
 
     GPUVAddr AllocateSpace(u64 size, u64 align);