diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-16 10:15:31 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-16 12:36:28 +0200 |
commit | dc00592b4e48a111efc6ff78bdbf7af998e58e22 (patch) | |
tree | 8ed83a15626e4f79db23da9d584f478dfe3f604f /libreofficekit | |
parent | ef7abe81df10cb8a8c04afbb1fbe700f94e73f04 (diff) |
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
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |