diff options
Diffstat (limited to 'include/tools/datetime.hxx')
-rw-r--r-- | include/tools/datetime.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tools/datetime.hxx b/include/tools/datetime.hxx index 9e1f5f3fe6ea..d8588518bc94 100644 --- a/include/tools/datetime.hxx +++ b/include/tools/datetime.hxx @@ -99,7 +99,7 @@ public: TOOLS_DLLPUBLIC friend DateTime operator -( const DateTime& rDateTime, const tools::Time& rTime ); TOOLS_DLLPUBLIC friend double operator -( const DateTime& rDateTime1, const DateTime& rDateTime2 ); TOOLS_DLLPUBLIC friend long operator -( const DateTime& rDateTime, const Date& rDate ) - { return (const Date&) rDateTime - rDate; } + { return static_cast<const Date&>(rDateTime) - rDate; } DateTime& operator =( const DateTime& rDateTime ); DateTime& operator =( const css::util::DateTime& rUDateTime ); |