mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-13 22:47:15 -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=(const path& rhs) = default;
|
||||||
path& operator=(path&& rhs) = default;
|
path& operator=(path&& rhs) = default;
|
||||||
|
|
||||||
bool empty();
|
bool empty() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::vector<std::string> names;
|
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();
|
return names.empty();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user