[Libreoffice-commits] core.git: vcl/source
Adrien Ollier (via logerrit)
logerrit at kemper.freedesktop.org
Thu May 9 05:08:58 UTC 2019
vcl/source/animate/Animation.cxx | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
New commits:
commit 865371a35d7f9d9fac08e9e75ac3c9c173144746
Author: Adrien Ollier <adr.ollier at hotmail.fr>
AuthorDate: Sat May 4 09:19:31 2019 +0200
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Thu May 9 07:07:56 2019 +0200
replaces one macro by a constant in the C++ style
Change-Id: I4b4fc85024d64f94197bd0fd25ed8ba0ada004ba
Signed-off-by: Adrien Ollier <adr.ollier at hotmail.fr>
Reviewed-on: https://gerrit.libreoffice.org/71807
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
diff --git a/vcl/source/animate/Animation.cxx b/vcl/source/animate/Animation.cxx
index 7885343b7fa8..37af008d036e 100644
--- a/vcl/source/animate/Animation.cxx
+++ b/vcl/source/animate/Animation.cxx
@@ -31,8 +31,6 @@
#include <impanmvw.hxx>
-#define MIN_TIMEOUT 2
-
sal_uLong Animation::mnAnimCount = 0;
Animation::Animation()
@@ -268,9 +266,14 @@ void Animation::Draw(OutputDevice* pOut, const Point& rDestPt, const Size& rDest
}
}
+namespace
+{
+constexpr sal_uLong constMinTimeout = 2;
+}
+
void Animation::ImplRestartTimer(sal_uLong nTimeout)
{
- maTimer.SetTimeout(std::max(nTimeout, static_cast<sal_uLong>(MIN_TIMEOUT)) * 10);
+ maTimer.SetTimeout(std::max(nTimeout, constMinTimeout) * 10);
maTimer.Start();
}
More information about the Libreoffice-commits
mailing list