Constify where possible.
Approved by: cperciva (mentor)
This commit is contained in:
parent
c3b73942d3
commit
5175512e23
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user