diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-29 15:12:57 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-29 15:12:57 +0100 |
commit | 6c7222e071ffe7d20c138faac0da1d708e0a7779 (patch) | |
tree | 86ad5d55f60b42b648fbdfc4183e160aacd5ef6c /lib/input | |
parent | Add -Wuseless-cast (diff) | |
download | mygrate-6c7222e071ffe7d20c138faac0da1d708e0a7779.tar.bz2 mygrate-6c7222e071ffe7d20c138faac0da1d708e0a7779.tar.xz mygrate-6c7222e071ffe7d20c138faac0da1d708e0a7779.zip |
Add -Wold-style-cast
Diffstat (limited to 'lib/input')
-rw-r--r-- | lib/input/mysqlBindings.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<Date>(dt) << static_cast<Time>(dt); } - } |