[Libreoffice-commits] core.git: libreofficekit/qa
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Wed Aug 7 06:24:46 UTC 2019
libreofficekit/qa/tilebench/tilebench.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit f2c08b1de813a3cc0ec61c0dfd7774045382526f
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Aug 6 16:52:32 2019 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Aug 7 08:24:12 2019 +0200
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 at redhat.com>
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)
More information about the Libreoffice-commits
mailing list