adding const to function
This commit is contained in:
parent
da4b330098
commit
85941393bf
@ -11,7 +11,7 @@ FileEntry::FileEntry(fs::directory_entry entry)
|
||||
|
||||
}
|
||||
|
||||
bool FileEntry::content_loaded()
|
||||
bool FileEntry::content_loaded() const
|
||||
{
|
||||
return loaded;
|
||||
}
|
||||
@ -25,7 +25,7 @@ std::string FileEntry::load_content()
|
||||
return file_content;
|
||||
}
|
||||
|
||||
std::string FileEntry::get_content()
|
||||
std::string FileEntry::get_content() const
|
||||
{
|
||||
return file_content;
|
||||
}
|
||||
|
@ -17,9 +17,9 @@ class FileEntry {
|
||||
fs::directory_entry file_entry;
|
||||
fs::path relative_path;
|
||||
|
||||
bool content_loaded();
|
||||
bool content_loaded() const;
|
||||
std::string load_content();
|
||||
std::string get_content();
|
||||
std::string get_content() const;
|
||||
void clear_content();
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user