mirror of
https://github.com/audacity/linuxdeploy.git
synced 2026-07-07 21:14:12 -05:00
Mark query function as const
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace linuxdeploy {
|
||||
|
||||
// get a specific section from the parsed data
|
||||
// throws std::range_error if section does not exist
|
||||
DesktopFile::section_t operator[](const std::string& name);
|
||||
DesktopFile::section_t operator[](const std::string& name) const;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user