kbrown / rpms / libreoffice

Forked from rpms/libreoffice 2 years ago
Clone

Blame SOURCES/0262-libreofficekit-Werror-unused-parameter.patch

135360
From a56ef7d60e8ee96204700a0b6c1474ed2d1560ad Mon Sep 17 00:00:00 2001
135360
From: Miklos Vajna <vmiklos@collabora.co.uk>
135360
Date: Tue, 3 Nov 2015 11:19:03 +0100
135360
Subject: [PATCH 262/398] libreofficekit: -Werror=unused-parameter
135360
135360
Change-Id: I89c4d9752ef650d516bed8fcdc5873de8ae87e18
135360
(cherry picked from commit 602c1b4e2922c6a0ce425f398983ef64e595b606)
135360
---
135360
 libreofficekit/source/gtk/lokdocview.cxx | 2 +-
135360
 libreofficekit/source/gtk/tilebuffer.cxx | 2 +-
135360
 libreofficekit/source/gtk/tilebuffer.hxx | 3 +--
135360
 3 files changed, 3 insertions(+), 4 deletions(-)
135360
135360
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
135360
index 867c0d165448..d570bbd1393b 100644
135360
--- a/libreofficekit/source/gtk/lokdocview.cxx
135360
+++ b/libreofficekit/source/gtk/lokdocview.cxx
135360
@@ -969,7 +969,7 @@ renderDocument(LOKDocView* pDocView, cairo_t* pCairo)
135360
                 GTask* task = g_task_new(pDocView, NULL, paintTileCallback, pLOEvent);
135360
                 g_task_set_task_data(task, pLOEvent, LOEvent::destroy);
135360
 
135360
-                Tile& currentTile = priv->m_pTileBuffer->getTile(nRow, nColumn, priv->m_fZoom, task, priv->lokThreadPool);
135360
+                Tile& currentTile = priv->m_pTileBuffer->getTile(nRow, nColumn, task, priv->lokThreadPool);
135360
                 GdkPixbuf* pPixBuf = currentTile.getBuffer();
135360
                 gdk_cairo_set_source_pixbuf (pCairo, pPixBuf,
135360
                                              twipToPixel(aTileRectangleTwips.x, priv->m_fZoom),
135360
diff --git a/libreofficekit/source/gtk/tilebuffer.cxx b/libreofficekit/source/gtk/tilebuffer.cxx
135360
index 6c9847674e53..1158209b2273 100644
135360
--- a/libreofficekit/source/gtk/tilebuffer.cxx
135360
+++ b/libreofficekit/source/gtk/tilebuffer.cxx
135360
@@ -85,7 +85,7 @@ void TileBuffer::setInvalid(int x, int y, float fZoom, GTask* task,
135360
     }
135360
 }
135360
 
135360
-Tile& TileBuffer::getTile(int x, int y, float fZoom, GTask* task,
135360
+Tile& TileBuffer::getTile(int x, int y, GTask* task,
135360
                           GThreadPool* lokThreadPool)
135360
 {
135360
     int index = x * m_nWidth + y;
135360
diff --git a/libreofficekit/source/gtk/tilebuffer.hxx b/libreofficekit/source/gtk/tilebuffer.hxx
135360
index bef1444f9c9c..5e1ea1a27049 100644
135360
--- a/libreofficekit/source/gtk/tilebuffer.hxx
135360
+++ b/libreofficekit/source/gtk/tilebuffer.hxx
135360
@@ -107,7 +107,6 @@ class TileBuffer
135360
 
135360
        @param x the tile along the x-axis of the buffer
135360
        @param y the tile along the y-axis of the buffer
135360
-       @param aZoom current zoom factor of the document
135360
        @param task GTask object containing the necessary data
135360
        @param pool GThreadPool managed by the widget instance used for all the
135360
        LOK calls made by widget. It is needed here because getTile invokes one
135360
@@ -115,7 +114,7 @@ class TileBuffer
135360
 
135360
        @return the tile at the mentioned position (x, y)
135360
      */
135360
-    Tile& getTile(int x, int y, float aZoom, GTask* task, GThreadPool* pool);
135360
+    Tile& getTile(int x, int y, GTask* task, GThreadPool* pool);
135360
     /// Destroys all the tiles in the tile buffer; also frees the memory allocated
135360
     /// for all the Tile objects.
135360
     void resetAllTiles();
135360
-- 
135360
2.12.0
135360