include/sfx2/lokhelper.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d490729a0fe23fd78bf84d51ea871644999f5871
Author: Miklos Vajna <vmik...@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 <vmik...@collabora.co.uk>
    Tested-by: Jenkins <c...@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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to