Sfoglia il codice sorgente

LibGUI: Fix some clang-tidy warnings in Window.cpp

Andreas Kling 4 anni fa
parent
commit
e0986c2766
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Userland/Libraries/LibGUI/Window.cpp

+ 2 - 2
Userland/Libraries/LibGUI/Window.cpp

@@ -35,8 +35,8 @@ static IDAllocator s_window_id_allocator;
 
 class WindowBackingStore {
 public:
-    WindowBackingStore(NonnullRefPtr<Gfx::Bitmap> bitmap)
-        : m_bitmap(bitmap)
+    explicit WindowBackingStore(NonnullRefPtr<Gfx::Bitmap> bitmap)
+        : m_bitmap(move(bitmap))
         , m_serial(++s_next_backing_store_serial)
     {
     }