use more consistent types
This commit is contained in:
6
row.cpp
6
row.cpp
@@ -53,7 +53,7 @@ int ColBooleanValue::compare(ColValue &other) const {
|
||||
}
|
||||
|
||||
Row::Row(const Row &other) : m_visible(other.m_visible), m_columns(other.m_columns.size()) {
|
||||
for (int i = 0; i < other.m_columns.size(); i++) {
|
||||
for (size_t i = 0; i < other.m_columns.size(); i++) {
|
||||
if (other[i].isNull())
|
||||
continue; // for null NOP
|
||||
|
||||
@@ -156,7 +156,7 @@ void Row::setColumnValue(ColDefNode *col_def, ValueNode *col_value) {
|
||||
}
|
||||
|
||||
int Row::compare(const Row &other) const {
|
||||
for (int ci = 0; ci < m_columns.size(); ci++) {
|
||||
for (size_t ci = 0; ci < m_columns.size(); ci++) {
|
||||
int cmp = this->operator[](ci).compare(other[ci]);
|
||||
if (cmp != 0) return cmp;
|
||||
}
|
||||
@@ -166,7 +166,7 @@ int Row::compare(const Row &other) const {
|
||||
void Row::print(const std::vector<ColDefNode> &col_defs) {
|
||||
std::string out{"| "};
|
||||
|
||||
for (int ci = 0; ci < m_columns.size(); ci++) {
|
||||
for (size_t ci = 0; ci < m_columns.size(); ci++) {
|
||||
auto & col_def = col_defs[ci];
|
||||
int col_size = print_get_column_size(col_def);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user