diff --git a/Framework/API/inc/MantidAPI/FileFinder.h b/Framework/API/inc/MantidAPI/FileFinder.h index 8983a728d14e..1842e2f8cd6d 100644 --- a/Framework/API/inc/MantidAPI/FileFinder.h +++ b/Framework/API/inc/MantidAPI/FileFinder.h @@ -50,7 +50,7 @@ class MANTID_API_DLL FileFinderImpl { std::vector findRuns(const std::string &hintstr, const std::vector &exts = {}, const bool useExtsOnly = false) const; /// DO NOT USE! MADE PUBLIC FOR TESTING ONLY. - const Kernel::InstrumentInfo getInstrument(const std::string &hint, const bool &returnDefaultIfNotFound = true) const; + const Kernel::InstrumentInfo getInstrument(const std::string &hint, const bool returnDefaultIfNotFound = true) const; /// DO NOT USE! MADE PUBLIC FOR TESTING ONLY. std::string getExtension(const std::string &filename, const std::vector &exts) const; void getUniqueExtensions(const std::vector &extensionsToAdd, std::vector &uniqueExts) const; diff --git a/Framework/API/src/FileFinder.cpp b/Framework/API/src/FileFinder.cpp index b9404a7ee0dc..02a604174529 100644 --- a/Framework/API/src/FileFinder.cpp +++ b/Framework/API/src/FileFinder.cpp @@ -140,7 +140,7 @@ std::string FileFinderImpl::extractAllowedSuffix(std::string &userString) const * @return This will return the default instrument if it cannot be determined. */ const Kernel::InstrumentInfo FileFinderImpl::getInstrument(const string &hint, - const bool &returnDefaultIfNotFound) const { + const bool returnDefaultIfNotFound) const { if ((!hint.empty()) && (!isdigit(hint[0]))) { string instrName(hint); Poco::Path path(instrName);