mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-13 14:36:37 -04:00
Fix constness
This commit is contained in:
parent
a58c4b90fa
commit
9f99d7d87c
@ -24,7 +24,7 @@ struct path {
|
||||
path& operator=(const path& rhs) = default;
|
||||
path& operator=(path&& rhs) = default;
|
||||
|
||||
bool empty();
|
||||
bool empty() const;
|
||||
|
||||
private:
|
||||
std::vector<std::string> names;
|
||||
|
@ -19,6 +19,6 @@ path::path(const std::string& path){
|
||||
}
|
||||
}
|
||||
|
||||
bool path::empty(){
|
||||
bool path::empty() const {
|
||||
return names.empty();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user