Add missing whitespaces for Zeek coding style

This commit is contained in:
Dominik Charousset 2021-03-01 16:43:34 +01:00
parent 59d114005e
commit 83d7d2da4c
7 changed files with 21 additions and 23 deletions

View file

@ -63,17 +63,17 @@ auto opaque(NativeDblGaugeFamily* ptr)
template <class F>
auto withNative(Span<const std::string_view> xs, F continuation)
{
if (xs.size() <= 10)
if ( xs.size() <= 10 )
{
caf::string_view buf[10];
for (size_t index = 0; index < xs.size(); ++index)
for ( size_t index = 0; index < xs.size(); ++index )
buf[index] = xs[index];
return continuation(Span{buf, xs.size()});
}
else
{
std::vector<caf::string_view> buf;
for (auto x : xs)
for ( auto x : xs )
buf.emplace_back(x);
return continuation(Span{buf});
}
@ -81,6 +81,10 @@ auto withNative(Span<const std::string_view> xs, F continuation)
} // namespace
Manager::~Manager()
{
}
IntCounterFamily Manager::intCounterFam(std::string_view prefix,
std::string_view name,
Span<const std::string_view> labels,
@ -150,7 +154,7 @@ template <class T>
auto toVector(zeek::Span<T> xs)
{
std::vector<std::remove_const_t<T>> result;
for (auto&& x : xs)
for ( auto&& x : xs )
result.emplace_back(x);
return result;
}