diff options
Autocommit at 08.05.2022 @ 10:08
1 files changed, 1 insertions, 5 deletions
| -rw-r--r-- | src/Generic/Date/Date.cpp | 6 |
diff --git a/src/Generic/Date/Date.cpp b/src/Generic/Date/Date.cpp index b20de51..db2551a 100644 --- a/src/Generic/Date/Date.cpp +++ b/src/Generic/Date/Date.cpp @@ -71,12 +71,8 @@ int digitToChar(unsigned digit) { } String Date::createCStr() { - unsigned d = day, m = month, y = year; String out; - if (d > 10) { - d - } - (out += itoa(day));// << "." << dt.get_month() << "." << dt.get_year(); + return ((((out += day) += ".") += month) += ".") += year; } void Date::read(std::istream& istr) { |
