From 9f99d7d87c70d6e4afc03f58df32b83d246bd096 Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Mon, 15 Aug 2016 21:30:53 +0200 Subject: [PATCH] Fix constness --- kernel/include/vfs/path.hpp | 2 +- kernel/src/path.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/include/vfs/path.hpp b/kernel/include/vfs/path.hpp index 5a74e27f..74e76e18 100644 --- a/kernel/include/vfs/path.hpp +++ b/kernel/include/vfs/path.hpp @@ -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 names; diff --git a/kernel/src/path.cpp b/kernel/src/path.cpp index 9afcea48..06e4ee0b 100644 --- a/kernel/src/path.cpp +++ b/kernel/src/path.cpp @@ -19,6 +19,6 @@ path::path(const std::string& path){ } } -bool path::empty(){ +bool path::empty() const { return names.empty(); }