diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-02-26 21:06:07 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-02-26 21:06:07 +0100 |
commit | b39660047aa0b8be811d529ee22e8f60d2f9c94e (patch) | |
tree | 9dc978deb516bb8a8a7fcae9b080b01518977325 /vcl | |
parent | 6689a9aaf75d291596a6b13acf1e1772af148e1b (diff) |
loplugin:fpcomparison
Change-Id: I5ef9d7bcff3fcc2b01c0e5578487a293c6e315df
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/osx/saltimer.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/osx/saltimer.cxx b/vcl/osx/saltimer.cxx index eb62693e85a6..5a242e8fa889 100644 --- a/vcl/osx/saltimer.cxx +++ b/vcl/osx/saltimer.cxx @@ -19,6 +19,8 @@ #include <sal/config.h> +#include <rtl/math.hxx> + #include "osx/saltimer.h" #include "osx/salnstimer.h" #include "osx/saldata.hxx" @@ -37,7 +39,8 @@ void ImplSalStartTimer( sal_uLong nMS ) NSTimeInterval aTI = double(nMS)/1000.0; if( AquaSalTimer::pRunningTimer != nil ) { - if( [AquaSalTimer::pRunningTimer timeInterval] == aTI ) + if (rtl::math::approxEqual( + [AquaSalTimer::pRunningTimer timeInterval], aTI)) { // set new fire date [AquaSalTimer::pRunningTimer setFireDate: [NSDate dateWithTimeIntervalSinceNow: aTI]]; |