Skip to content

Commit

Permalink
Merge pull request #7064 from bangerth/brace-initializers-2
Browse files Browse the repository at this point in the history
Simplify the initialization of a variety of objects.
  • Loading branch information
drwells committed Aug 15, 2018
2 parents 42428ca + ff0e244 commit 7639fa8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/deal.II/base/parameter_acceptor.h
Expand Up @@ -497,7 +497,7 @@ class ParameterAcceptor : public Subscriptor
void
add_parameter(const std::string & entry,
ParameterType & parameter,
const std::string & documentation = std::string(),
const std::string & documentation = "",
ParameterHandler & prm_ = prm,
const Patterns::PatternBase &pattern =
*Patterns::Tools::Convert<ParameterType>::to_pattern());
Expand Down
4 changes: 2 additions & 2 deletions include/deal.II/base/parameter_handler.h
Expand Up @@ -1025,7 +1025,7 @@ class ParameterHandler : public Subscriptor
declare_entry(const std::string & entry,
const std::string & default_value,
const Patterns::PatternBase &pattern = Patterns::Anything(),
const std::string & documentation = std::string());
const std::string & documentation = "");

/**
* Attach an action to the parameter with name @p entry in the current
Expand Down Expand Up @@ -1087,7 +1087,7 @@ class ParameterHandler : public Subscriptor
void
add_parameter(const std::string & entry,
ParameterType & parameter,
const std::string & documentation = std::string(),
const std::string & documentation = "",
const Patterns::PatternBase &pattern =
*Patterns::Tools::Convert<ParameterType>::to_pattern());

Expand Down
4 changes: 2 additions & 2 deletions include/deal.II/base/timer.h
Expand Up @@ -802,13 +802,13 @@ class TimerOutput
* is left.
*/
void
leave_subsection(const std::string &section_name = std::string());
leave_subsection(const std::string &section_name = "");

/**
* Same as @p leave_subsection.
*/
void
exit_section(const std::string &section_name = std::string());
exit_section(const std::string &section_name = "");

/**
* Get a map with the collected data of the specified type for each subsection
Expand Down
2 changes: 1 addition & 1 deletion include/deal.II/numerics/kdtree.h
Expand Up @@ -86,7 +86,7 @@ class KDTree
* again, then all following results will likely be wrong.
*/
KDTree(const unsigned int max_leaf_size = 10,
const std::vector<Point<dim>> &pts = std::vector<Point<dim>>());
const std::vector<Point<dim>> &pts = {});


/**
Expand Down
2 changes: 1 addition & 1 deletion source/numerics/solution_transfer.cc
Expand Up @@ -427,7 +427,7 @@ void
SolutionTransfer<dim, VectorType, DoFHandlerType>::
prepare_for_coarsening_and_refinement(const VectorType &in)
{
std::vector<VectorType> all_in = std::vector<VectorType>(1, in);
std::vector<VectorType> all_in(1, in);
prepare_for_coarsening_and_refinement(all_in);
}

Expand Down

0 comments on commit 7639fa8

Please sign in to comment.