summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2018-05-06 11:04:45 +0200
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2018-05-07 19:55:35 +0200
commitf282662c222cc8d31a7a440f8e553dddc8b4dd3e (patch)
tree0ae61efd33e5e7288bc77edb2ee28ff3548e8ac3 /sfx2
parent603074c5f2b84de8a24593faf807da784b040625 (diff)
cppcheck: accessMoved
Change-Id: Ia0d0761660a2096c308b1738ccc0294cb3b2a456 Reviewed-on: https://gerrit.libreoffice.org/53907 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/templatelocalview.cxx2
1 files changed, 1 insertions, 1 deletions
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)