]> git.sesse.net Git - plocate/commitdiff
clang-format.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Thu, 1 Oct 2020 16:09:11 +0000 (18:09 +0200)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Thu, 1 Oct 2020 16:09:11 +0000 (18:09 +0200)
plocate.cpp

index 7a4de8f91de51b534e82a17e668c3fdafff3e3ea..09cc8343c30280471b1b5fc41874b8b0129bc805 100644 (file)
@@ -50,7 +50,7 @@ private:
 
 void Serializer::print_delayed(int seq, const vector<string> msg)
 {
-       pending.push(Element{seq, move(msg)});
+       pending.push(Element{ seq, move(msg) });
 }
 
 void Serializer::release_current()
@@ -322,7 +322,8 @@ void do_search_file(const vector<string> &needles, const char *filename)
 
        vector<pair<Trigram, size_t>> trigrams;
        for (const string &needle : needles) {
-               if (needle.size() < 3) continue;
+               if (needle.size() < 3)
+                       continue;
                for (size_t i = 0; i < needle.size() - 2; ++i) {
                        uint32_t trgm = read_trigram(needle, i);
                        corpus.find_trigram(trgm, [trgm, &trigrams](const Trigram *trgmptr, size_t len) {