diff options
author | Richard PALO <richard@NetBSD.org> | 2015-09-15 15:58:51 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2015-10-20 15:17:58 +0000 |
commit | fd612a144c0028972513a18167a13d29326a1798 (patch) | |
tree | 66208cb56cc22e7d7b942f029a46f3213bb3a1a2 /vcl/workben | |
parent | d42c3e0ddd9078c00de591b7470d73ad8a186cb1 (diff) |
Add DLOPEN_LIBS to configure for some cases where -ldl is needed
use std::sqrt in vcldemo.cxx
Change-Id: I24d8ba15ee267d0cad3b063df9b7cfd8d284f4ee
Reviewed-on: https://gerrit.libreoffice.org/18591
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'vcl/workben')
-rw-r--r-- | vcl/workben/vcldemo.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index 02be8e2f76de..9ae1cd1409a3 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -142,11 +142,11 @@ public: maIntroBW.Filter(BMP_FILTER_EMBOSS_GREY); InitRenderers(); - mnSegmentsX = rtl::math::round(sqrt(maRenderers.size()), 0, + mnSegmentsX = rtl::math::round(std::sqrt(maRenderers.size()), 0, rtl_math_RoundingMode_Up); - mnSegmentsY = rtl::math::round(sqrt(maRenderers.size()), 0, + mnSegmentsY = rtl::math::round(std::sqrt(maRenderers.size()), 0, rtl_math_RoundingMode_Down); - mnSegmentsY = floor(sqrt(maRenderers.size())); + mnSegmentsY = floor(std::sqrt(maRenderers.size())); } OUString getRendererList(); |