Skip to content

Commit 188968c

Browse files
committed
odb: clang-tidy
Signed-off-by: Eren Dogan <[email protected]>
1 parent 948c5e2 commit 188968c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/odb/src/db/dbJournalLog.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <cstring>
77
#include <string>
8+
#include <vector>
89

910
#include "dbCommon.h"
1011
#include "dbJournal.h"
@@ -272,7 +273,7 @@ void dbJournalLog::append(dbJournalLog& other)
272273
utl::ODB, 438, "In append, didn't match the expected action index.");
273274
}
274275
uint next_idx = other.size();
275-
if (action_indices.size() > 0) {
276+
if (!action_indices.empty()) {
276277
next_idx = action_indices.back();
277278
}
278279
next_idx -= sizeof(uint) + 1;

src/odb/src/db/dbModBTerm.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "dbTable.h"
1616
#include "dbTable.hpp"
1717
#include "odb/db.h"
18+
#include "utl/Logger.h"
1819
// User Code Begin Includes
1920
#include <string>
2021

src/odb/src/db/dbModITerm.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "dbTable.h"
1515
#include "dbTable.hpp"
1616
#include "odb/db.h"
17+
#include "utl/Logger.h"
1718
// User Code Begin Includes
1819
#include <string>
1920

0 commit comments

Comments
 (0)