diff options
Autocommit at 28.05.2022 @ 19:59
1 files changed, 1 insertions, 2 deletions
| -rw-r--r-- | src/Models/Table.cpp | 3 |
diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp index 0719a58..70579b4 100644 --- a/src/Models/Table.cpp +++ b/src/Models/Table.cpp @@ -11,11 +11,10 @@ Table::Table(unsigned rows, unsigned cols) { cells[i] = List<Cell*>(cols); } - bool containsNumber(const char*& str) { while (*str == ' ') str++; return ((*str == '+' || *str == '-') && (*(str + 1) >= '0' && *(str + 1) <= '9')) || - (*str >= '0' && *str <= '9'); + (*str >= '0' && *str <= '9'); // + or -, followed by digit, or it just a digit } void Table::putCell(unsigned row, unsigned col, const char* rawValue) { |
