summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-12-14 09:06:03 +0100
committerMichael Stahl <mstahl@redhat.com>2013-01-03 23:42:07 +0100
commit0663224aa5d608aed21fdec58ebef37760a7e1df (patch)
tree40cb0c3f91d459a7bcb2a074e9bd89c35a25007e /registry
parentcf13f53bf32ccde8e162da8e9bb85dd5159f4531 (diff)
Create a TYPEREG_VERSION_1 RegistryTypeReader
RegistryTypeReader is deprecated anyway, so was never lifted from TYPEREG_VERSION_0 to _1 back in the day of implementing "shiny new UNO." However, that now caused problems when trying to use offapi/type_reference/update-rdb.sh to unpublish an old-style service. Quoting my summary on IRC: "the problem with regmerge was that regmerge is still using an old API that only knows old rdb blob format, the format got extended 10 years ago to accomodate things like 'published' or multiple-inheritance inrterfaces; removing the 'published' from an old-style service no longer requires it to be written in the new format, so the two rdbs to be merged had that blob with different formats, and regmerge's 'checkBlop' only knowing about the old format barked that those blobs were completely incompatible; oh my :)" I hope this "fix" does not break anything unrelated (but usage of deprecated RegistryTypeReader should indeed be rather limited.) Change-Id: If04a67f8ba00fbbea3352182e5ce0d868de7c0b5 (cherry picked from commit cbb9bc55b44edea0c7b0a22bfe411c414fadbc69)
Diffstat (limited to 'registry')
-rw-r--r--registry/source/reflread.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx
index e51178867671..62bfaa913e83 100644
--- a/registry/source/reflread.cxx
+++ b/registry/source/reflread.cxx
@@ -1179,7 +1179,7 @@ REG_DLLPUBLIC sal_Bool TYPEREG_CALLTYPE typereg_reader_create(
static TypeReaderImpl TYPEREG_CALLTYPE createEntry(const sal_uInt8* buffer, sal_uInt32 len, sal_Bool copyBuffer)
{
void * handle;
- typereg_reader_create(buffer, len, copyBuffer, TYPEREG_VERSION_0, &handle);
+ typereg_reader_create(buffer, len, copyBuffer, TYPEREG_VERSION_1, &handle);
return handle;
}