adding const to function

This commit is contained in:
Andy Pack 2023-06-17 10:17:20 +01:00
parent da4b330098
commit 85941393bf
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ FileEntry::FileEntry(fs::directory_entry entry)
} }
bool FileEntry::content_loaded() bool FileEntry::content_loaded() const
{ {
return loaded; return loaded;
} }
@ -25,7 +25,7 @@ std::string FileEntry::load_content()
return file_content; return file_content;
} }
std::string FileEntry::get_content() std::string FileEntry::get_content() const
{ {
return file_content; return file_content;
} }

View File

@ -17,9 +17,9 @@ class FileEntry {
fs::directory_entry file_entry; fs::directory_entry file_entry;
fs::path relative_path; fs::path relative_path;
bool content_loaded(); bool content_loaded() const;
std::string load_content(); std::string load_content();
std::string get_content(); std::string get_content() const;
void clear_content(); void clear_content();
private: private: