From 76b2f533413890018a421120bd7cf0bc6edf61a5 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 9 Jan 2016 15:04:16 -0500 Subject: [PATCH] Use a constant reference for a string. --- cdr/common/include/deal.II-cdr/parameters.h | 2 +- cdr/common/source/parameters.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cdr/common/include/deal.II-cdr/parameters.h b/cdr/common/include/deal.II-cdr/parameters.h index ddf2d15..83e21bf 100644 --- a/cdr/common/include/deal.II-cdr/parameters.h +++ b/cdr/common/include/deal.II-cdr/parameters.h @@ -36,7 +36,7 @@ namespace CDR unsigned int save_interval; unsigned int patch_level; - void read_parameter_file(std::string file_name); + void read_parameter_file(const std::string &file_name); private: void configure_parameter_handler(ParameterHandler ¶meter_handler); }; diff --git a/cdr/common/source/parameters.cc b/cdr/common/source/parameters.cc index b5b7fe1..36f606a 100644 --- a/cdr/common/source/parameters.cc +++ b/cdr/common/source/parameters.cc @@ -62,7 +62,7 @@ namespace CDR parameter_handler.leave_subsection(); } - void Parameters::read_parameter_file(std::string file_name) + void Parameters::read_parameter_file(const std::string &file_name) { ParameterHandler parameter_handler; { -- 2.39.5