Commit b229aa1c authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[trac613] pass parameters by reference instead of a copy of obj when possible

parent ba66913e
......@@ -31,7 +31,7 @@ using namespace std;
namespace {
std::string
ccspecfile(const std::string name) {
ccspecfile(const std::string& name) {
return (std::string(TEST_DATA_PATH) + "/" + name);
}
......
......@@ -23,7 +23,7 @@
using namespace isc::data;
using namespace isc::config;
std::string specfile(const std::string name) {
std::string specfile(const std::string& name) {
return (std::string(TEST_DATA_PATH) + "/" + name);
}
......
......@@ -62,7 +62,7 @@ trim(const string& instring) {
// another dependency on a Boost library.
vector<string>
tokens(const std::string text, const std::string& delim) {
tokens(const std::string& text, const std::string& delim) {
vector<string> result;
// Search for the first non-delimiter character
......
......@@ -71,7 +71,7 @@ std::string trim(const std::string& instring);
/// \param delim Delimiter characters
///
/// \return Vector of tokens.
std::vector<std::string> tokens(const std::string text,
std::vector<std::string> tokens(const std::string& text,
const std::string& delim = std::string(" \t\n"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment