diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-04-14 09:20:19 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-04-14 11:08:32 +0200 |
commit | d490729a0fe23fd78bf84d51ea871644999f5871 (patch) | |
tree | 109f6e5704a7a9d955fa3c66fbf674382cc42d50 /include/sfx2 | |
parent | ada1ac86de4c8696b7ef061d671bf19917af3998 (diff) |
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@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/lokhelper.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); |