Commit 99bf1558 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Directory: cosmeticss

parent 1bc69918
...@@ -59,7 +59,7 @@ const std::vector<std::string>& Directory::files() ...@@ -59,7 +59,7 @@ const std::vector<std::string>& Directory::files()
return m_files; return m_files;
} }
const std::vector<std::string>&Directory::dirs() const std::vector<std::string>& Directory::dirs()
{ {
if ( m_dirs.size() == 0 && m_files.size() == 0 ) if ( m_dirs.size() == 0 && m_files.size() == 0 )
read(); read();
...@@ -74,7 +74,7 @@ std::shared_ptr<IDevice> Directory::device() const ...@@ -74,7 +74,7 @@ std::shared_ptr<IDevice> Directory::device() const
return m_device.get(); return m_device.get();
} }
std::string Directory::toAbsolute(const std::string& path) std::string Directory::toAbsolute( const std::string& path )
{ {
char abs[PATH_MAX]; char abs[PATH_MAX];
if ( realpath( path.c_str(), abs ) == nullptr ) if ( realpath( path.c_str(), abs ) == nullptr )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment