sfx2/source/control/templatelocalview.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f282662c222cc8d31a7a440f8e553dddc8b4dd3e
Author: Jochen Nitschke <j.nitschke+loger...@ok.de>
Date:   Sun May 6 11:04:45 2018 +0200

    cppcheck: accessMoved
    
    Change-Id: Ia0d0761660a2096c308b1738ccc0294cb3b2a456
    Reviewed-on: https://gerrit.libreoffice.org/53907
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Jochen Nitschke <j.nitschke+loger...@ok.de>

diff --git a/sfx2/source/control/templatelocalview.cxx 
b/sfx2/source/control/templatelocalview.cxx
index 530142a343f6..efc66dda09ab 100644
--- a/sfx2/source/control/templatelocalview.cxx
+++ b/sfx2/source/control/templatelocalview.cxx
@@ -382,7 +382,7 @@ sal_uInt16 TemplateLocalView::createRegion(const OUString 
&rName)
 
     maRegions.push_back(std::move(pItem));
 
-    return pItem->mnId;
+    return nItemId;
 }
 
 bool TemplateLocalView::renameRegion(const OUString &rTitle, const OUString 
&rNewTitle)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to