Mark query function as const

This commit is contained in:
TheAssassin
2018-11-09 03:10:36 +01:00
parent 3e1d340612
commit 156b45f819
2 changed files with 2 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ namespace linuxdeploy {
return d->path;
}
DesktopFile::section_t DesktopFileReader::operator[](const std::string& name) {
DesktopFile::section_t DesktopFileReader::operator[](const std::string& name) const {
auto it = d->sections.find(name);
// the map would lazy-initialize a new entry in case the section doesn't exist