mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Fine, be that way GCC (nw)
This commit is contained in:
parent
52e65cb567
commit
9fccecfcf3
@ -96,7 +96,7 @@ public:
|
||||
|
||||
virtual const entry *read() override;
|
||||
|
||||
bool open(std::string const &dirname);
|
||||
bool open_impl(std::string const &dirname);
|
||||
|
||||
private:
|
||||
typedef std::unique_ptr<DIR, int (*)(DIR *)> dir_ptr;
|
||||
@ -180,10 +180,10 @@ const osd::directory::entry *posix_directory::read()
|
||||
|
||||
|
||||
//============================================================
|
||||
// posix_directory::open
|
||||
// posix_directory::open_impl
|
||||
//============================================================
|
||||
|
||||
bool posix_directory::open(std::string const &dirname)
|
||||
bool posix_directory::open_impl(std::string const &dirname)
|
||||
{
|
||||
assert(!m_fd);
|
||||
|
||||
@ -205,7 +205,7 @@ directory::ptr directory::open(std::string const &dirname)
|
||||
try { dir.reset(new posix_directory); }
|
||||
catch (...) { return nullptr; }
|
||||
|
||||
if (!dir->open(dirname))
|
||||
if (!dir->open_impl(dirname))
|
||||
return nullptr;
|
||||
|
||||
return ptr(std::move(dir));
|
||||
|
@ -40,7 +40,7 @@ public:
|
||||
|
||||
virtual const entry *read() override;
|
||||
|
||||
bool open(std::string const &dirname);
|
||||
bool open_impl(std::string const &dirname);
|
||||
|
||||
private:
|
||||
HANDLE m_find; // handle to the finder
|
||||
@ -106,10 +106,10 @@ const directory::entry *win_directory::read()
|
||||
|
||||
|
||||
//============================================================
|
||||
// win_directory::open
|
||||
// win_directory::open_impl
|
||||
//============================================================
|
||||
|
||||
bool win_directory::open(std::string const &dirname)
|
||||
bool win_directory::open_impl(std::string const &dirname)
|
||||
{
|
||||
assert(m_find == INVALID_HANDLE_VALUE);
|
||||
|
||||
@ -144,7 +144,7 @@ directory::ptr directory::open(std::string const &dirname)
|
||||
try { dir.reset(new win_directory()); }
|
||||
catch (...) { return nullptr; }
|
||||
|
||||
if (!dir->open(dirname))
|
||||
if (!dir->open_impl(dirname))
|
||||
return false;
|
||||
|
||||
return ptr(std::move(dir));
|
||||
|
Loading…
Reference in New Issue
Block a user