diff options
| Commit | a0a893815d9fb9af7a3c0a6dfc8a6f980d32e62a (patch) | |
|---|---|---|
| Author | 2022-05-30 21:18:41 +0300 | |
| Committer | 2022-05-30 21:18:41 +0300 | |
| Files | e6e320cacc97e895fab4c4c8cbb22b27eb5d1887 /src | |
| FMI-OOP-P2_Tables-a0a893815d9fb9af7a3c0a6dfc8a6f980d32e62a.tar FMI-OOP-P2_Tables-a0a893815d9fb9af7a3c0a6dfc8a6f980d32e62a.tar.gz FMI-OOP-P2_Tables-a0a893815d9fb9af7a3c0a6dfc8a6f980d32e62a.zip | ||
| Parent | b45b705ced197e25265700f5ded05a79fa0bd48c (diff) | |
Autocommit at 30.05.2022 @ 21:18
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | src/Models/Table.cpp | 2 |
diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp index 421fae9..2862c51 100644 --- a/src/Models/Table.cpp +++ b/src/Models/Table.cpp @@ -31,7 +31,7 @@ bool containsNumber(const char*& str) { void Table::readFromFile(std::ifstream& inFile) { unsigned commaCount = countOfCommas(inFile); unsigned colInd = 0; - cells.add(List<Cell*>()); + cells.add(List<Cell*>(commaCount)); while (inFile.peek() != EOF) { while (inFile.peek() == ' ') inFile.get(); |
