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:37:54 +0200 |
commit | dabf5c6ef2fbc9f041fbd3c5c4ddaa62ebeb493c (patch) | |
tree | 79ce6ab2256c7ac3066b35263d52c3c923eb2c7e /sfx2 | |
parent | 5cd5f66c42b9bf8cdb6b6065dd0877a50e343294 (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
(cherry picked from commit dc00592b4e48a111efc6ff78bdbf7af998e58e22)
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/lokhelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index 59cdb833ead1..d06f92f9644a 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -84,7 +84,7 @@ int SfxLokHelper::getView(SfxViewShell* pViewShell) return pViewShell->GetViewShellId(); } -std::size_t SfxLokHelper::getViews() +std::size_t SfxLokHelper::getViewsCount() { SfxViewShellArr_Impl& rViewArr = SfxGetpApp()->GetViewShells_Impl(); return rViewArr.size(); @@ -105,7 +105,7 @@ void SfxLokHelper::notifyOtherView(SfxViewShell* pThisView, SfxViewShell* pOther void SfxLokHelper::notifyOtherViews(SfxViewShell* pThisView, int nType, const OString& rKey, const OString& rPayload) { - if (SfxLokHelper::getViews() <= 1) + if (SfxLokHelper::getViewsCount() <= 1) return; SfxViewShell* pViewShell = SfxViewShell::GetFirst(); |