Skip to content
Snippets Groups Projects
Commit 7d9cb0f7 authored by Russell Taylor's avatar Russell Taylor
Browse files

Eliminate a ubiquitous Intel compiler warning. Re #3302.

parent efa17c20
No related merge requests found
......@@ -39,7 +39,7 @@ class CloneableAlgorithm;
@author Russell Taylor, Tessella Support Services plc
@date 21/09/2007
Copyright © 2007-2010 ISIS Rutherford Appleton Laboratory & NScD Oak Ridge National Laboratory
Copyright © 2007-2011 ISIS Rutherford Appleton Laboratory & NScD Oak Ridge National Laboratory
This file is part of Mantid.
......@@ -95,8 +95,9 @@ public:
}
}
///Get the algorithm names and version - mangled use decodeName to seperate
const std::vector<std::string> getKeys(bool includeHidden=false) const;
/// Get the algorithm names and version - mangled use decodeName to separate
const std::vector<std::string> getKeys() const;
const std::vector<std::string> getKeys(bool includeHidden) const;
///Get the algorithm categories
const std::set<std::string> getCategories(bool includeHidden=false) const;
......
......@@ -100,6 +100,20 @@ namespace Mantid
}
}
/** Return the keys used for identifying algorithms. This includes those within the Factory itself and
* any cleanly constructed algorithms stored here.
* Hidden algorithms are excluded.
* @returns The strings used to identify individual algorithms
*/
const std::vector<std::string> AlgorithmFactoryImpl::getKeys() const
{
/* We have a separate method rather than just a default argument value
to the getKeys(bool) methods so as to avoid an intel compiler warning. */
// Just call the 'other' getKeys method with the flag set to false
return getKeys(false);
}
/**
* Return the keys used for identifying algorithms. This includes those within the Factory itself and
* any cleanly constructed algorithms stored here.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment