Return const reference from unhandledArguments().
This commit is contained in:
parent
d4c0631c1d
commit
dfe6e730eb
@ -329,7 +329,7 @@ namespace Opm {
|
||||
}
|
||||
}
|
||||
|
||||
const std::vector<std::string> ParameterGroup::unhandledArguments() const
|
||||
const std::vector<std::string>& ParameterGroup::unhandledArguments() const
|
||||
{
|
||||
return unhandled_arguments_;
|
||||
}
|
||||
|
@ -268,7 +268,7 @@ namespace Opm {
|
||||
void insertParameter(const std::string& name, const std::string& value);
|
||||
|
||||
/// Unhandled arguments from command line parsing.
|
||||
const std::vector<std::string> unhandledArguments() const;
|
||||
const std::vector<std::string>& unhandledArguments() const;
|
||||
|
||||
private:
|
||||
typedef std::shared_ptr<ParameterMapItem> data_type;
|
||||
@ -279,7 +279,7 @@ namespace Opm {
|
||||
map_type map_;
|
||||
const ParameterGroup* parent_;
|
||||
bool output_is_enabled_;
|
||||
std::vector<std::string> unhandled_arguments_;
|
||||
std::vector<std::string> unhandled_arguments_;
|
||||
|
||||
template<typename T, class Requirement>
|
||||
T translate(const pair_type& data, const Requirement& chk) const;
|
||||
|
Loading…
Reference in New Issue
Block a user