Skip to content

Commit

Permalink
add a const version of a function #12002
Browse files Browse the repository at this point in the history
  • Loading branch information
YaqiWang committed Sep 5, 2018
1 parent 1934b46 commit 003cff6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions framework/include/actions/MooseObjectAction.h
Expand Up @@ -31,6 +31,11 @@ class MooseObjectAction : public Action
*/
InputParameters & getObjectParams() { return _moose_object_pars; }

/**
* Constant version of retreiving the parameters of the object to be created by this action
*/
const InputParameters & getObjectParams() const { return _moose_object_pars; }

/**
* Return the object type to be created
*/
Expand Down

0 comments on commit 003cff6

Please sign in to comment.