Browse Source

card_image: Simplify return statement of GetSubdirectories()

We don't need to write out the construction long-form, we can just let
the language itself work it out off the return type.
Lioncash 8 năm trước cách đây
mục cha
commit
d6a1a43854
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/core/file_sys/card_image.cpp

+ 1 - 1
src/core/file_sys/card_image.cpp

@@ -112,7 +112,7 @@ std::vector<std::shared_ptr<VfsFile>> XCI::GetFiles() const {
 }
 
 std::vector<std::shared_ptr<VfsDirectory>> XCI::GetSubdirectories() const {
-    return std::vector<std::shared_ptr<VfsDirectory>>();
+    return {};
 }
 
 std::string XCI::GetName() const {