diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Path.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Path.hpp b/include/Path.hpp index a881a53..3d849e2 100644 --- a/include/Path.hpp +++ b/include/Path.hpp @@ -48,7 +48,7 @@ namespace QuickMedia { return ""; } - Path parent() { + Path parent() const { size_t slash_index = data.rfind('/'); if(slash_index != std::string::npos && slash_index > 0) return Path(data.substr(0, slash_index)); |