summaryrefslogtreecommitdiff
path: root/include/sfx2/lokhelper.hxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-04-14 09:20:19 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-04-14 11:08:32 +0200
commitd490729a0fe23fd78bf84d51ea871644999f5871 (patch)
tree109f6e5704a7a9d955fa3c66fbf674382cc42d50 /include/sfx2/lokhelper.hxx
parentada1ac86de4c8696b7ef061d671bf19917af3998 (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/lokhelper.hxx')
-rw-r--r--include/sfx2/lokhelper.hxx2
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);