store/source/stortree.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit ac8fdc7dd4f8ff8d896402838323c65e12c03e7c
Author: Julien Nabet <[email protected]>
Date: Mon Jan 19 22:45:02 2015 +0100
Suppress 1 cppcheck warning arrayIndexOutOfBounds
See
http://nabble.documentfoundation.org/cppcheck-arrayIndexOutOfBounds-report-in-stortree-cxx-store-module-td4136432.html
Change-Id: I365befacf7d10bcbf0a159cfdcabd3eb1644d02b
diff --git a/store/source/stortree.cxx b/store/source/stortree.cxx
index 5e96a6e..a491aff 100644
--- a/store/source/stortree.cxx
+++ b/store/source/stortree.cxx
@@ -49,7 +49,10 @@ OStoreBTreeNodeData::OStoreBTreeNodeData (sal_uInt16
nPageSize)
T const t;
for (sal_uInt16 i = 1; i < n; i++)
+ {
+ // cppcheck-suppress arrayIndexOutOfBounds
m_pData[i] = t;
+ }
}
/*
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits