From 6c7222e071ffe7d20c138faac0da1d708e0a7779 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 29 Aug 2021 15:12:57 +0100 Subject: Add -Wold-style-cast --- lib/input/mysqlBindings.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/input') diff --git a/lib/input/mysqlBindings.cpp b/lib/input/mysqlBindings.cpp index 3895821..089ced5 100644 --- a/lib/input/mysqlBindings.cpp +++ b/lib/input/mysqlBindings.cpp @@ -22,7 +22,6 @@ namespace MyGrate::Input { MYSQL_TIME & operator<<(MYSQL_TIME & t, const DateTime & dt) { - return t << (Date)dt << (Time)dt; + return t << static_cast(dt) << static_cast