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>
This commit is contained in:
Stephan Bergmann
2019-08-07 08:24:12 +02:00
parent c78306fb47
commit f2c08b1de8
+4 -4
View File
@@ -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)