util: Making FilePath::exists noexcept so the noexcept version of boost::filesystem::exists is used (#919)

This commit is contained in:
Timothee "TTimo" Besset
2020-02-12 16:53:39 +01:00
committed by GitHub
parent 4da9c53931
commit 71ef2f31a1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ bool FilePath::empty() const
return m_path->empty(); return m_path->empty();
} }
bool FilePath::exists() const bool FilePath::exists() const noexcept
{ {
if (!m_checkedExists) if (!m_checkedExists)
{ {
+1 -1
View File
@@ -27,7 +27,7 @@ public:
boost::filesystem::path getPath() const; boost::filesystem::path getPath() const;
bool empty() const; bool empty() const;
bool exists() const; bool exists() const noexcept;
bool recheckExists() const; bool recheckExists() const;
bool isDirectory() const; bool isDirectory() const;
bool isAbsolute() const; bool isAbsolute() const;