Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Table.cpp
diff options
context:
space:
mode:
1 files changed, 1 insertions, 2 deletions
-rw-r--r--src/Models/Table.cpp3
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) {