From dc00592b4e48a111efc6ff78bdbf7af998e58e22 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 16 Sep 2016 10:15:31 +0200 Subject: lok::Document: rename getViews() to getViewsCount() As this only returns the number of views, not the actual views. Since it's a rename, it's just an API (but not an ABI) change. Change-Id: Ib4f0ea56a90e5ae9c80ee1781aa2f29aff4259e7 --- libreofficekit/source/gtk/lokdocview.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libreofficekit/source/gtk') diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index e2ea5ca2133f..195335c6a531 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -2532,7 +2532,7 @@ static void lok_doc_view_finalize (GObject* object) priv->m_pDocument->pClass->registerCallback(priv->m_pDocument, nullptr, nullptr); aGuard.unlock(); - if (priv->m_pDocument && priv->m_pDocument->pClass->getViews(priv->m_pDocument) > 1) + if (priv->m_pDocument && priv->m_pDocument->pClass->getViewsCount(priv->m_pDocument) > 1) { priv->m_pDocument->pClass->destroyView(priv->m_pDocument, priv->m_nViewId); } -- cgit