Fix formatting of foreach function.
GitOrigin-RevId: de355b5e5877428c75a167f4bff1e2514b5e0577
This commit is contained in:
parent
b0dfc088ae
commit
b0a2564b97
@ -55,7 +55,7 @@ DerivePointerAlignment: true
|
||||
DisableFormat: false
|
||||
ExperimentalAutoDetectBinPacking: false
|
||||
FixNamespaceComments: true
|
||||
# ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
|
||||
ForEachMacros: [ Q_FOREACH_THIS_LIST_MUST_BE_NON_EMPTY ]
|
||||
IndentCaseLabels: true
|
||||
IndentPPDirectives: None
|
||||
IndentWidth: 2
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include <unordered_map>
|
||||
|
||||
namespace td {
|
||||
|
||||
class SeqKeyValue {
|
||||
public:
|
||||
using SeqNo = uint64;
|
||||
@ -51,7 +52,7 @@ class SeqKeyValue {
|
||||
}
|
||||
|
||||
template <class F>
|
||||
void foreach (const F &f) {
|
||||
void foreach(const F &f) {
|
||||
for (auto &it : map_) {
|
||||
f(it.first, it.second);
|
||||
}
|
||||
@ -75,4 +76,5 @@ class SeqKeyValue {
|
||||
return ++current_id_;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace td
|
||||
|
@ -82,9 +82,6 @@ class SqliteKeyValue {
|
||||
void close() {
|
||||
clear();
|
||||
}
|
||||
void close_silent() {
|
||||
clear();
|
||||
}
|
||||
static Status destroy(Slice name) {
|
||||
return SqliteDb::destroy(name);
|
||||
}
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include <utility>
|
||||
|
||||
namespace td {
|
||||
|
||||
class TsSeqKeyValue {
|
||||
public:
|
||||
using SeqNo = SeqKeyValue::SeqNo;
|
||||
@ -68,4 +69,5 @@ class TsSeqKeyValue {
|
||||
RwMutex rw_mutex_;
|
||||
SeqKeyValue kv_;
|
||||
};
|
||||
|
||||
} // namespace td
|
||||
|
Loading…
Reference in New Issue
Block a user