diff options
author | 2015-04-13 12:25:00 +0200 | |
---|---|---|
committer | 2015-04-13 12:25:21 +0200 | |
commit | 2edee0b81142bb565d646145f79cb6e70a7f1d4a (patch) | |
tree | c6cfb2a26a0c981972d280633bcac240b5f481e1 /src/lib/util | |
parent | dcd4f2a5b8476240591fd519c172c3f41710839a (diff) |
updated astring constructors to have just one string param, to be more like std::string (nw)
Diffstat (limited to 'src/lib/util')
-rw-r--r-- | src/lib/util/astring.h | 4 | ||||
-rw-r--r-- | src/lib/util/options.c | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/util/astring.h b/src/lib/util/astring.h index 0858896184a..089ee585dae 100644 --- a/src/lib/util/astring.h +++ b/src/lib/util/astring.h @@ -34,10 +34,6 @@ public: // construction with copy astring(const char *string) { init(); if(string) cpy(string); } astring(const char *string, int length) { init().cpy(string, length); } - astring(const char *str1, const char *str2) { init().cpy(str1).cat(str2); } - astring(const char *str1, const char *str2, const char *str3) { init().cpy(str1).cat(str2).cat(str3); } - astring(const char *str1, const char *str2, const char *str3, const char *str4) { init().cpy(str1).cat(str2).cat(str3).cat(str4); } - astring(const char *str1, const char *str2, const char *str3, const char *str4, const char *str5) { init().cpy(str1).cat(str2).cat(str3).cat(str4).cat(str5); } astring(const astring &string) { init().cpy(string); } astring(const astring &string, int start, int count = -1) { init().cpysubstr(string, start, count); } diff --git a/src/lib/util/options.c b/src/lib/util/options.c index d1d69db2e82..f5beddf1d71 100644 --- a/src/lib/util/options.c +++ b/src/lib/util/options.c @@ -687,7 +687,7 @@ void core_options::append_entry(core_options::entry &newentry) // for boolean options add a "no" variant as well if (newentry.type() == OPTION_BOOLEAN) - m_entrymap.add(astring("no", newentry.name(name)).c_str(), &newentry); + m_entrymap.add(astring("no").cat(newentry.name(name)).c_str(), &newentry); } } |