diff options
Diffstat (limited to 'idlc/source/aststruct.cxx')
-rw-r--r-- | idlc/source/aststruct.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/idlc/source/aststruct.cxx b/idlc/source/aststruct.cxx index 5245f06c90f8..8b683d085f23 100644 --- a/idlc/source/aststruct.cxx +++ b/idlc/source/aststruct.cxx @@ -102,11 +102,10 @@ bool AstStruct::dump(RegistryKey& rKey) if ( getNodeType() == NT_exception ) typeClass = RT_TYPE_EXCEPTION; - OUString emptyStr; typereg::Writer aBlob( (m_typeParameters.empty() && !m_bPublished ? TYPEREG_VERSION_0 : TYPEREG_VERSION_1), - getDocumentation(), emptyStr, typeClass, m_bPublished, + getDocumentation(), "", typeClass, m_bPublished, OStringToOUString(getRelativName(), RTL_TEXTENCODING_UTF8), m_pBaseType == nullptr ? 0 : 1, nMember, 0, static_cast< sal_uInt16 >(m_typeParameters.size())); @@ -138,7 +137,7 @@ bool AstStruct::dump(RegistryKey& rKey) typeName = pMember->getType()->getRelativName(); } aBlob.setFieldData( - index++, pMember->getDocumentation(), emptyStr, flags, + index++, pMember->getDocumentation(), "", flags, OStringToOUString( pMember->getLocalName(), RTL_TEXTENCODING_UTF8), OStringToOUString(typeName, RTL_TEXTENCODING_UTF8), @@ -153,7 +152,7 @@ bool AstStruct::dump(RegistryKey& rKey) i != m_typeParameters.end(); ++i) { aBlob.setReferenceData( - index++, emptyStr, RTReferenceType::TYPE_PARAMETER, RTFieldAccess::INVALID, + index++, "", RTReferenceType::TYPE_PARAMETER, RTFieldAccess::INVALID, OStringToOUString( (*i)->getLocalName(), RTL_TEXTENCODING_UTF8)); } @@ -161,7 +160,7 @@ bool AstStruct::dump(RegistryKey& rKey) sal_uInt32 aBlobSize; void const * pBlob = aBlob.getBlob(&aBlobSize); - if (localKey.setValue(emptyStr, RegValueType::BINARY, + if (localKey.setValue("", RegValueType::BINARY, const_cast<RegValue>(pBlob), aBlobSize) != RegError::NO_ERROR) { fprintf(stderr, "%s: warning, could not set value of key \"%s\" in %s\n", |