From 6a7de42a769a9543a6b6e929e87e63669c96c0b6 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 11 Aug 2015 09:46:43 +0200 Subject: Properly init PropertyValue.Handle in InitPropertySequence Change-Id: If00dc9330f0fd08057ac75510e1c2f3bb1e5b17c --- include/comphelper/propertysequence.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/comphelper/propertysequence.hxx') diff --git a/include/comphelper/propertysequence.hxx b/include/comphelper/propertysequence.hxx index 7cd9494082c2..62f9588abac5 100644 --- a/include/comphelper/propertysequence.hxx +++ b/include/comphelper/propertysequence.hxx @@ -26,7 +26,9 @@ namespace comphelper for(const auto& aEntry : vInit) { vResult[nCount].Name = aEntry.first; + vResult[nCount].Handle = -1; vResult[nCount].Value = aEntry.second; + // State is default-initialized to DIRECT_VALUE ++nCount; } return vResult; -- cgit