mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
Qt: Deprecate processEvents() part 2
This commit is contained in:
parent
191e132c6c
commit
378a69ea85
7 changed files with 202 additions and 72 deletions
|
@ -475,7 +475,7 @@ namespace fs
|
|||
dir() = default;
|
||||
|
||||
// Open dir handle
|
||||
explicit dir(const std::string& path)
|
||||
explicit dir(const std::string& path) noexcept
|
||||
{
|
||||
open(path);
|
||||
}
|
||||
|
@ -484,7 +484,7 @@ namespace fs
|
|||
bool open(const std::string& path);
|
||||
|
||||
// Check whether the handle is valid (opened directory)
|
||||
explicit operator bool() const
|
||||
explicit operator bool() const noexcept
|
||||
{
|
||||
return m_dir.operator bool();
|
||||
}
|
||||
|
@ -531,7 +531,7 @@ namespace fs
|
|||
from_current
|
||||
};
|
||||
|
||||
iterator(const dir* parent, mode mode_ = mode::from_first)
|
||||
iterator(const dir* parent, mode mode_ = mode::from_first) noexcept
|
||||
: m_parent(parent)
|
||||
{
|
||||
if (!m_parent)
|
||||
|
@ -569,6 +569,13 @@ namespace fs
|
|||
return *this;
|
||||
}
|
||||
|
||||
iterator operator++(int)
|
||||
{
|
||||
iterator old = *this;
|
||||
*this = {m_parent, mode::from_current};
|
||||
return old;
|
||||
}
|
||||
|
||||
bool operator !=(const iterator& rhs) const
|
||||
{
|
||||
return m_parent != rhs.m_parent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue