diff options
1 files changed, 4 insertions, 4 deletions
| -rw-r--r-- | src/Models/CellInt.cpp | 8 |
diff --git a/src/Models/CellInt.cpp b/src/Models/CellInt.cpp index 01b262b..b2e4578 100644 --- a/src/Models/CellInt.cpp +++ b/src/Models/CellInt.cpp @@ -2,17 +2,17 @@ #include <cstring> String CellInt::getValueForPrint() { - return value; + return String() += value; } void CellInt::parseAndSetValue(const char* str) { - value = String(str); + value = atoi(str); } void CellInt::readFromFile(std::ifstream& file) { - value.read(file); + file >> value; } void CellInt::writeToFile(std::ofstream& file) { - value.write(file); + file << value; } |
