Skip to content
Snippets Groups Projects
Commit 58818ce5 authored by Eric Cano's avatar Eric Cano
Browse files

#533 Fixed const correctness in DiskSystemList::getFSNAme().

parent cf0fac6a
Branches
Tags
No related merge requests found
......@@ -39,7 +39,7 @@ const DiskSystem& DiskSystemList::at(const std::string& name) {
//------------------------------------------------------------------------------
// DiskSystemList::getFSNAme()
//------------------------------------------------------------------------------
std::string DiskSystemList::getFSNAme(const std::string& fileURL) {
std::string DiskSystemList::getFSNAme(const std::string& fileURL) const {
// First if the regexes have not been created yet, do so.
if (m_pointersAndRegexes.empty() && size()) {
for (const auto &ds: *this) {
......
......@@ -52,7 +52,7 @@ class DiskSystemList: public std::list<DiskSystem> {
public:
/** Get the filesystem for a given destination URL */
std::string getFSNAme(const std::string &fileURL);
std::string getFSNAme(const std::string &fileURL) const;
/** Get the file system parameters from a file system name */
const DiskSystem & at(const std::string &name);
......@@ -63,7 +63,7 @@ private:
utils::Regex regex;
};
std::list<PointerAndRegex> m_pointersAndRegexes;
mutable std::list<PointerAndRegex> m_pointersAndRegexes;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment