Constify where possible.

Approved by:	cperciva (mentor)
This commit is contained in:
eadler 2013-03-04 02:19:55 +00:00
parent c3b73942d3
commit 5175512e23
2 changed files with 2 additions and 2 deletions

View File

@ -653,7 +653,7 @@ config::expand_string(const char *src, const char *prepend, const char *append)
}
bool
config::chop_var(char *&buffer, char *&lhs, char *&rhs)
config::chop_var(char *&buffer, char *&lhs, char *&rhs) const
{
char *walker;

View File

@ -172,7 +172,7 @@ protected:
void parse_files_in_dir(const char *dirname);
void expand_one(const char *&src, std::string &dst);
bool is_id_char(char) const;
bool chop_var(char *&buffer, char *&lhs, char *&rhs);
bool chop_var(char *&buffer, char *&lhs, char *&rhs) const;
private:
std::vector<std::string> _dir_list;
std::string _pidfile;