summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-03-25 16:47:19 +1100
committerMaxime Coste <mawww@kakoune.org>2018-03-25 16:47:19 +1100
commit49c52b025f2cb5bd66f729f873d2e690b613fb39 (patch)
tree2181f8cc2c43646abbfdc213991028c406d33649 /src/main.cc
parent435b5b7ff97c7e52d50c002c9480af7066ead2ad (diff)
Remove contains_that and use any_of to be closer to the c++ stdlib
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cc b/src/main.cc
index c9ea0d5b..b7c62aec 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -280,7 +280,7 @@ static void check_timeout(const int& timeout)
static void check_extra_word_chars(const Vector<Codepoint, MemoryDomain::Options>& extra_chars)
{
- if (contains_that(extra_chars, is_blank))
+ if (any_of(extra_chars, is_blank))
throw runtime_error{"blanks are not accepted for extra completion characters"};
}
@@ -288,7 +288,7 @@ static void check_matching_pairs(const Vector<Codepoint, MemoryDomain::Options>&
{
if ((pairs.size() % 2) != 0)
throw runtime_error{"matching pairs should have a pair number of element"};
- if (contains_that(pairs, [](Codepoint c) { return not is_punctuation(c); }))
+ if (not all_of(pairs, is_punctuation))
throw runtime_error{"matching pairs can only be punctuation"};
}