diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-03 11:19:03 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-03 11:19:03 +0100 |
commit | 602c1b4e2922c6a0ce425f398983ef64e595b606 (patch) | |
tree | 17143a4f5dc7edcc6d0b59afc79bc83bc4ba5db9 /libreofficekit | |
parent | de0c7e1783edc6a36037f2657f823dc9812c0804 (diff) |
libreofficekit: -Werror=unused-parameter
Change-Id: I89c4d9752ef650d516bed8fcdc5873de8ae87e18
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 2 | ||||
-rw-r--r-- | libreofficekit/source/gtk/tilebuffer.cxx | 2 | ||||
-rw-r--r-- | libreofficekit/source/gtk/tilebuffer.hxx | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index 66ab46124643..f980e7fc1b4a 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -969,7 +969,7 @@ renderDocument(LOKDocView* pDocView, cairo_t* pCairo) GTask* task = g_task_new(pDocView, NULL, paintTileCallback, pLOEvent); g_task_set_task_data(task, pLOEvent, LOEvent::destroy); - Tile& currentTile = priv->m_pTileBuffer->getTile(nRow, nColumn, priv->m_fZoom, task, priv->lokThreadPool); + Tile& currentTile = priv->m_pTileBuffer->getTile(nRow, nColumn, task, priv->lokThreadPool); GdkPixbuf* pPixBuf = currentTile.getBuffer(); gdk_cairo_set_source_pixbuf (pCairo, pPixBuf, twipToPixel(aTileRectangleTwips.x, priv->m_fZoom), diff --git a/libreofficekit/source/gtk/tilebuffer.cxx b/libreofficekit/source/gtk/tilebuffer.cxx index a1390827a4ca..6d447a8dc296 100644 --- a/libreofficekit/source/gtk/tilebuffer.cxx +++ b/libreofficekit/source/gtk/tilebuffer.cxx @@ -79,7 +79,7 @@ void TileBuffer::setInvalid(int x, int y, float fZoom, GTask* task, } } -Tile& TileBuffer::getTile(int x, int y, float fZoom, GTask* task, +Tile& TileBuffer::getTile(int x, int y, GTask* task, GThreadPool* lokThreadPool) { int index = x * m_nWidth + y; diff --git a/libreofficekit/source/gtk/tilebuffer.hxx b/libreofficekit/source/gtk/tilebuffer.hxx index 27fbdf6fcb20..f74cae7ba42f 100644 --- a/libreofficekit/source/gtk/tilebuffer.hxx +++ b/libreofficekit/source/gtk/tilebuffer.hxx @@ -105,7 +105,6 @@ class TileBuffer @param x the tile along the x-axis of the buffer @param y the tile along the y-axis of the buffer - @param aZoom current zoom factor of the document @param task GTask object containing the necessary data @param pool GThreadPool managed by the widget instance used for all the LOK calls made by widget. It is needed here because getTile invokes one @@ -113,7 +112,7 @@ class TileBuffer @return the tile at the mentioned position (x, y) */ - Tile& getTile(int x, int y, float aZoom, GTask* task, GThreadPool* pool); + Tile& getTile(int x, int y, GTask* task, GThreadPool* pool); /// Destroys all the tiles in the tile buffer; also frees the memory allocated /// for all the Tile objects. void resetAllTiles(); |