Skip to content
Snippets Groups Projects
Commit 8f32bab4 authored by Lioncash's avatar Lioncash
Browse files

common/file: Remove [[nodiscard]] from Open()

Since this has a void return value, there's nothing that can actually be
used.
parent 11099dda
No related branches found
No related tags found
Loading
......@@ -188,9 +188,8 @@ public:
#ifdef _WIN32
template <typename Path>
[[nodiscard]] void Open(const Path& path, FileAccessMode mode,
FileType type = FileType::BinaryFile,
FileShareFlag flag = FileShareFlag::ShareReadOnly) {
void Open(const Path& path, FileAccessMode mode, FileType type = FileType::BinaryFile,
FileShareFlag flag = FileShareFlag::ShareReadOnly) {
using ValueType = typename Path::value_type;
if constexpr (IsChar<ValueType>) {
Open(ToU8String(path), mode, type, flag);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment