diff src/gui/widgets/optional_date.cpp @ 63:3d2decf093bb

*: fix many clang warnings
author Paper <mrpapersonic@gmail.com>
date Sun, 01 Oct 2023 06:39:47 -0400
parents 4c6dd5999b39
children
line wrap: on
line diff
--- a/src/gui/widgets/optional_date.cpp	Sun Oct 01 06:16:06 2023 -0400
+++ b/src/gui/widgets/optional_date.cpp	Sun Oct 01 06:39:47 2023 -0400
@@ -29,9 +29,7 @@
 		SetEnabled(state == Qt::Checked);
 		emit DataChanged(IsEnabled(), GetDate());
 	});
-	connect(_dateedit, &QDateEdit::dateChanged, this, [this](QDate) {
-		emit DataChanged(IsEnabled(), GetDate());
-	});
+	connect(_dateedit, &QDateEdit::dateChanged, this, [this](QDate) { emit DataChanged(IsEnabled(), GetDate()); });
 }
 
 void OptionalDate::SetEnabled(bool enabled) {
@@ -48,7 +46,8 @@
 }
 
 void OptionalDate::SetDate(Date date) {
-	if (!date.IsValid()) return;
+	if (!date.IsValid())
+		return;
 	SetDate(date.GetAsQDate());
 }