From a7c38e8bf62285f98b0c80f3a6089a7f327f781e Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 8 May 2022 10:08:29 +0300 Subject: Autocommit at 08.05.2022 @ 10:08 --- src/Generic/Date/Date.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/Generic/Date/Date.cpp') 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) { -- cgit v1.3.1-23-gd82d