summaryrefslogtreecommitdiff
path: root/idlc/source/astdump.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-07-23 13:42:47 +0000
committerRüdiger Timm <rt@openoffice.org>2004-07-23 13:42:47 +0000
commit7252e6e02878d923a7008bb6475610cd0ca0c218 (patch)
treecdc286eb05214cf2ce4a4c6495daa1cec767cd9f /idlc/source/astdump.cxx
parent6f888416c284a6eacdd17c41152e98602f9bd5cf (diff)
INTEGRATION: CWS sb20 (1.9.8); FILE MERGED
2004/07/08 09:14:44 sb 1.9.8.1: #i29741# Allow for single-interface--based services that have neither explicit nor implicit constructors.
Diffstat (limited to 'idlc/source/astdump.cxx')
-rw-r--r--idlc/source/astdump.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/idlc/source/astdump.cxx b/idlc/source/astdump.cxx
index 6ac6bbd60301..05538a96e4b4 100644
--- a/idlc/source/astdump.cxx
+++ b/idlc/source/astdump.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: astdump.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: obo $ $Date: 2004-06-03 15:07:30 $
+ * last change: $Author: rt $ $Date: 2004-07-23 14:42:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -278,6 +278,10 @@ sal_Bool AstService::dump(RegistryKey& rKey)
break;
}
}}
+ OSL_ASSERT(constructors == 0 || !m_defaultConstructor);
+ if (m_defaultConstructor) {
+ constructors = 1;
+ }
RegistryKey localKey;
if (rKey.createKey(
rtl::OStringToOUString(getFullName(), RTL_TEXTENCODING_UTF8),
@@ -377,6 +381,12 @@ sal_Bool AstService::dump(RegistryKey& rKey)
break;
}
}}
+ if (m_defaultConstructor) {
+ writer.setMethodData(
+ constructorIndex++, rtl::OUString(), RT_MODE_TWOWAY,
+ rtl::OUString(), rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("void")),
+ 0, 0);
+ }
sal_uInt32 size;
void const * blob = writer.getBlob(&size);
if (localKey.setValue(