dbaccess: use constructor feature for ORowSet

Change-Id: Iabb04fde096e8d0bb92b3d796310354df5985e9a
This commit is contained in:
Miklos Vajna
2015-01-28 11:27:10 +01:00
parent d720330c91
commit 671bf2330a
4 changed files with 6 additions and 5 deletions

View File

@@ -96,9 +96,11 @@ using namespace ::com::sun::star::util;
using namespace ::cppu;
using namespace ::osl;
extern "C" void SAL_CALL createRegistryInfo_ORowSet()
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* SAL_CALL
com_sun_star_comp_dba_ORowSet_get_implementation(css::uno::XComponentContext* context,
css::uno::Sequence<css::uno::Any> const &)
{
static ::dba::OAutoRegistration< ORowSet > aAutoRegistration;
return cppu::acquire(new ORowSet(context));
}
#define NOTIFY_LISTERNERS_CHECK(_rListeners,T,method) \

View File

@@ -29,7 +29,6 @@ extern "C" void SAL_CALL createRegistryInfo_OCommandDefinition();
extern "C" void SAL_CALL createRegistryInfo_OComponentDefinition();
extern "C" void SAL_CALL createRegistryInfo_ODatabaseDocument();
extern "C" void SAL_CALL createRegistryInfo_ODatabaseSource();
extern "C" void SAL_CALL createRegistryInfo_ORowSet();
#endif

View File

@@ -60,7 +60,6 @@ extern "C" void SAL_CALL createRegistryInfo_DBA()
{
createRegistryInfo_OCommandDefinition();
createRegistryInfo_OComponentDefinition();
createRegistryInfo_ORowSet();
createRegistryInfo_ODatabaseDocument();
createRegistryInfo_ODatabaseSource();
createRegistryInfo_DataAccessDescriptorFactory();

View File

@@ -43,7 +43,8 @@
<service name="com.sun.star.sdb.DataSource"/>
<service name="com.sun.star.sdb.DocumentDataSource"/>
</implementation>
<implementation name="com.sun.star.comp.dba.ORowSet">
<implementation name="com.sun.star.comp.dba.ORowSet"
constructor="com_sun_star_comp_dba_ORowSet_get_implementation">
<service name="com.sun.star.sdb.ResultSet"/>
<service name="com.sun.star.sdb.RowSet"/>
<service name="com.sun.star.sdbc.ResultSet"/>