mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-25 15:52:57 +00:00
common/file: Remove [[nodiscard]] from Open()
Since this has a void return value, there's nothing that can actually be used.
This commit is contained in:
parent
11099dda2e
commit
8f32bab4c9
|
@ -188,9 +188,8 @@ public:
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
template <typename Path>
|
template <typename Path>
|
||||||
[[nodiscard]] void Open(const Path& path, FileAccessMode mode,
|
void Open(const Path& path, FileAccessMode mode, FileType type = FileType::BinaryFile,
|
||||||
FileType type = FileType::BinaryFile,
|
FileShareFlag flag = FileShareFlag::ShareReadOnly) {
|
||||||
FileShareFlag flag = FileShareFlag::ShareReadOnly) {
|
|
||||||
using ValueType = typename Path::value_type;
|
using ValueType = typename Path::value_type;
|
||||||
if constexpr (IsChar<ValueType>) {
|
if constexpr (IsChar<ValueType>) {
|
||||||
Open(ToU8String(path), mode, type, flag);
|
Open(ToU8String(path), mode, type, flag);
|
||||||
|
|
Loading…
Reference in a new issue