[Libreoffice-commits] core.git: include/sfx2
Miklos Vajna
vmiklos at collabora.co.uk
Fri Apr 14 09:08:58 UTC 2017
include/sfx2/lokhelper.hxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d490729a0fe23fd78bf84d51ea871644999f5871
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Fri Apr 14 09:20:19 2017 +0200
sfx2 lok: use auto when initializing with a cast to avoid duplication
Change-Id: I4e462e9355db3ae44deb0762f019f097f8550eb2
Reviewed-on: https://gerrit.libreoffice.org/36548
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
Tested-by: Jenkins <ci at libreoffice.org>
diff --git a/include/sfx2/lokhelper.hxx b/include/sfx2/lokhelper.hxx
index a6de41cb880d..9cc7492f70ae 100644
--- a/include/sfx2/lokhelper.hxx
+++ b/include/sfx2/lokhelper.hxx
@@ -54,7 +54,7 @@ void SfxLokHelper::forEachOtherView(ViewShellType* pThisViewShell, FunctionType
SfxViewShell* pViewShell = SfxViewShell::GetFirst();
while (pViewShell)
{
- ViewShellType* pOtherViewShell = dynamic_cast<ViewShellType*>(pViewShell);
+ auto pOtherViewShell = dynamic_cast<ViewShellType*>(pViewShell);
if (pOtherViewShell != nullptr && pOtherViewShell != pThisViewShell)
{
f(pOtherViewShell);
More information about the Libreoffice-commits
mailing list