summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-26 15:17:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-02-26 20:04:29 +0100
commitdc3d27c53e5c8149571025a031857973783a9248 (patch)
tree78921a3a9fa4473f9c1dab14abae38b0f64a6364 /sc
parent10d8ba5fa6fac708c960278454ba403a95e355c3 (diff)
cid#1500706 Uninitialized scalar field
Change-Id: I2546ea6880ad1cdb4312ca1c1251dbf6758ff5ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130593 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/Accessibility/AccessibleDocument.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx
index 1d58af05fe2a..21e3d1813a77 100644
--- a/sc/source/ui/Accessibility/AccessibleDocument.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx
@@ -258,7 +258,6 @@ private:
mutable ::accessibility::AccessibleShapeTreeInfo maShapeTreeInfo;
mutable css::uno::Reference<css::view::XSelectionSupplier> xSelectionSupplier;
- mutable size_t mnSdrObjCount;
mutable sal_uInt32 mnShapesSelected;
ScTabViewShell* mpViewShell;
ScAccessibleDocument* mpAccessibleDocument;
@@ -499,9 +498,9 @@ sal_Int32 ScChildrenShapes::GetCount() const
SdrPage* pDrawPage = GetDrawPage();
if (pDrawPage && (maZOrderedShapes.size() == 1)) // the table is always in
{
- mnSdrObjCount = pDrawPage->GetObjCount();
- maZOrderedShapes.reserve(mnSdrObjCount + 1); // the table is always in
- for (size_t i = 0; i < mnSdrObjCount; ++i)
+ size_t nSdrObjCount = pDrawPage->GetObjCount();
+ maZOrderedShapes.reserve(nSdrObjCount + 1); // the table is always in
+ for (size_t i = 0; i < nSdrObjCount; ++i)
{
SdrObject* pObj = pDrawPage->GetObj(i);
if (pObj/* && (pObj->GetLayer() != SC_LAYER_INTERN)*/)