From a57916f781f333b39d8bd9ffcfd883f86cbfbbe9 Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Mon, 25 Sep 2023 20:58:34 +0200 Subject: [PATCH] Minor cleanups --- include/date.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/date.hpp b/include/date.hpp index 9c94dcc..970a8d0 100644 --- a/include/date.hpp +++ b/include/date.hpp @@ -61,8 +61,8 @@ struct month { operator date_type() const { return value; } - month& operator=(date_type value){ - this->value = value; + month& operator=(date_type new_value){ + this->value = new_value; return *this; } @@ -100,8 +100,8 @@ struct year { year(date_type value) : value(value) {} operator date_type() const { return value; } - year& operator=(date_type value){ - this->value = value; + year& operator=(date_type new_value){ + this->value = new_value; return *this; } @@ -122,8 +122,8 @@ struct months { explicit months(date_type value) : value(value) {} operator date_type() const { return value; } - months& operator=(date_type value){ - this->value = value; + months& operator=(date_type new_value){ + this->value = new_value; return *this; }