Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Table.cpp
diff options
context:
space:
mode:
Commit3e16f4c814816d1d9641700a1c7ffd9e2158afc9 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-30 22:19:03 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-30 22:19:03 +0300
Files0596eb7b2684d4479953e06d449222899128a6ec /src/Models/Table.cpp
FMI-OOP-P2_Tables-3e16f4c814816d1d9641700a1c7ffd9e2158afc9.tar
FMI-OOP-P2_Tables-3e16f4c814816d1d9641700a1c7ffd9e2158afc9.tar.gz
FMI-OOP-P2_Tables-3e16f4c814816d1d9641700a1c7ffd9e2158afc9.zip
Parentd9deee99607e6f39042cd05eaa56f46ae305487c (diff)
Autocommit at 30.05.2022 @ 22:19
1 files changed, 3 insertions, 1 deletions
-rw-r--r--src/Models/Table.cpp4
diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp
index 4692a9e..5e7f2a9 100644
--- a/src/Models/Table.cpp
+++ b/src/Models/Table.cpp
@@ -91,13 +91,15 @@ void Table::readFromFile(std::ifstream& inFile) {
else if (inFile.peek() == '"') {
String res;
inFile.get();
+ char buffer;
while (inFile.peek() != '"') {
if (inFile.peek() == '\n')
throw std::logic_error(fileLocationExceptionMsg("Error: Could not find a matching end quote for string at row ", cells.get_count(), inFile.tellg() % cols + 1));
if (inFile.peek() == '\\') {
inFile.get();
}
- res += inFile.get();
+ buffer = inFile.get();
+ res += (const char*)&buffer;
}
inFile.get();