refactor(clang-tidy): Apply fixes

This commit is contained in:
Michael Carlberg 2016-11-25 13:55:15 +01:00
parent 0128014d44
commit ff9be848c7
119 changed files with 1752 additions and 1046 deletions
include/drawtypes

View file

@ -59,8 +59,8 @@ namespace drawtypes {
operator bool();
label_t clone();
void reset_tokens();
bool has_token(string token);
void replace_token(string token, string replacement);
bool has_token(const string& token);
void replace_token(const string& token, string replacement);
void replace_defined_values(const label_t& label);
void copy_undefined(const label_t& label);
@ -69,7 +69,7 @@ namespace drawtypes {
const vector<struct bounds> m_token_bounds;
};
label_t load_label(const config& conf, string section, string name, bool required = true, string def = "");
label_t load_label(const config& conf, const string& section, string name, bool required = true, string def = "");
label_t load_optional_label(const config& conf, string section, string name, string def = "");