diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-08-06 16:52:32 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-08-07 08:24:12 +0200 |
commit | f2c08b1de813a3cc0ec61c0dfd7774045382526f (patch) | |
tree | 70bb3c3dfb78248c22274ac49fe7066726b98ff0 /libreofficekit | |
parent | c78306fb47011a3c050368b9696cb2d5ecf3d57d (diff) |
Mark some vars as const
...with the benefit of avoiding some Clang 10
-Werror,-Wimplicit-int-float-conversion in places where they are implicitly
converted to double
Change-Id: I0a8e85b23e3cb19d736e436b793ad83bb5fb99c4
Reviewed-on: https://gerrit.libreoffice.org/77034
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/qa/tilebench/tilebench.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libreofficekit/qa/tilebench/tilebench.cxx b/libreofficekit/qa/tilebench/tilebench.cxx index cf14315dd9eb..5e7ed19af668 100644 --- a/libreofficekit/qa/tilebench/tilebench.cxx +++ b/libreofficekit/qa/tilebench/tilebench.cxx @@ -140,10 +140,10 @@ static void testTile( Document *pDocument, int max_parts, aTimes.emplace_back(); // Use realistic dimensions, similar to the Online client. - long nTilePixelWidth = 512; - long nTilePixelHeight = 512; - long nTileTwipWidth = 3840; - long nTileTwipHeight = 3840; + long const nTilePixelWidth = 512; + long const nTilePixelHeight = 512; + long const nTileTwipWidth = 3840; + long const nTileTwipHeight = 3840; // Estimate the maximum tiles based on the number of parts requested, if Writer. if (pDocument->getDocumentType() == LOK_DOCTYPE_TEXT) |