Formatting fix

This commit is contained in:
Maxime Coste 2015-05-02 18:48:20 +01:00
parent d7159a9af0
commit 78eb437b90
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ void option_from_string(StringView str, InsertCompleterDesc& opt)
opt.param = Optional<String>{};
return;
}
throw runtime_error("invalid completer description: " + str);;
throw runtime_error("invalid completer description: " + str);
}
namespace

View File

@ -27,7 +27,7 @@ struct StringData : UseMemoryDomain<MemoryDomain::SharedString>
{
const int len = (int)str.length() + (back != 0 ? 1 : 0);
void* ptr = StringData::operator new(sizeof(StringData) + len + 1);
StringData* res = new (ptr) StringData(0, len);;
StringData* res = new (ptr) StringData(0, len);
std::copy(str.begin(), str.end(), res->data());
if (back != 0)
res->data()[len-1] = back;