From 4b6cd3e44eca28dfbad22e67cecc8faddcae2e1f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 28 May 2022 15:43:53 +0300 Subject: Autocommit at 28.05.2022 @ 15:43 --- src/Models/CellInt.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Models/CellInt.cpp') 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 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; } -- cgit v1.3.1-23-gd82d