From 78eb437b9061606d582ad6e39138728cd7567118 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 2 May 2015 18:48:20 +0100 Subject: [PATCH] Formatting fix --- src/insert_completer.cc | 2 +- src/shared_string.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/insert_completer.cc b/src/insert_completer.cc index 24c0c27d..30be039c 100644 --- a/src/insert_completer.cc +++ b/src/insert_completer.cc @@ -56,7 +56,7 @@ void option_from_string(StringView str, InsertCompleterDesc& opt) opt.param = Optional{}; return; } - throw runtime_error("invalid completer description: " + str);; + throw runtime_error("invalid completer description: " + str); } namespace diff --git a/src/shared_string.hh b/src/shared_string.hh index c5de1747..74232613 100644 --- a/src/shared_string.hh +++ b/src/shared_string.hh @@ -27,7 +27,7 @@ struct StringData : UseMemoryDomain { 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;