Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
30289fca
Kaydet (Commit)
30289fca
authored
Ara 13, 2015
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
XComponentContext not needed for DataAccessDescriptor
Change-Id: If5ede0c308930d37bff9e97afc8a76cc5b709034
üst
8a7a20f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
20 deletions
+10
-20
dataaccessdescriptor.cxx
dbaccess/source/core/dataaccess/dataaccessdescriptor.cxx
+10
-20
No files found.
dbaccess/source/core/dataaccess/dataaccessdescriptor.cxx
Dosyayı görüntüle @
30289fca
...
...
@@ -42,7 +42,6 @@ namespace
using
::
com
::
sun
::
star
::
uno
::
RuntimeException
;
using
::
com
::
sun
::
star
::
uno
::
Any
;
using
::
com
::
sun
::
star
::
uno
::
Sequence
;
using
::
com
::
sun
::
star
::
uno
::
XComponentContext
;
using
::
com
::
sun
::
star
::
lang
::
XServiceInfo
;
using
::
com
::
sun
::
star
::
beans
::
XPropertySetInfo
;
using
::
com
::
sun
::
star
::
beans
::
Property
;
...
...
@@ -68,7 +67,7 @@ namespace
,
public
::
comphelper
::
OPropertyArrayUsageHelper
<
DataAccessDescriptor
>
{
public
:
explicit
DataAccessDescriptor
(
const
Reference
<
XComponentContext
>
&
_rContext
);
DataAccessDescriptor
(
);
// UNO
DECLARE_XINTERFACE
()
...
...
@@ -91,8 +90,6 @@ namespace
virtual
::
cppu
::
IPropertyArrayHelper
*
createArrayHelper
(
)
const
override
;
private
:
Reference
<
XComponentContext
>
m_xContext
;
// </properties>
OUString
m_sDataSourceName
;
OUString
m_sDatabaseLocation
;
...
...
@@ -117,11 +114,10 @@ namespace
#define REGISTER_PROPERTY( propname, member ) \
registerProperty( PROPERTY_##propname, PROPERTY_ID_##propname, PropertyAttribute::BOUND, &member, cppu::UnoType<decltype(member)>::get() )
DataAccessDescriptor
::
DataAccessDescriptor
(
const
Reference
<
XComponentContext
>
&
_rContext
)
DataAccessDescriptor
::
DataAccessDescriptor
()
:
DataAccessDescriptor_MutexBase
()
,
DataAccessDescriptor_TypeBase
()
,
DataAccessDescriptor_PropertyBase
(
m_aBHelper
)
,
m_xContext
(
_rContext
)
,
m_sDataSourceName
()
,
m_sDatabaseLocation
()
,
m_sConnectionResource
()
...
...
@@ -213,15 +209,11 @@ namespace
// XDataAccessDescriptorFactory
virtual
Reference
<
XPropertySet
>
SAL_CALL
createDataAccessDescriptor
(
)
throw
(
RuntimeException
,
std
::
exception
)
override
;
explicit
DataAccessDescriptorFactory
(
const
Reference
<
XComponentContext
>&
_rxContext
);
DataAccessDescriptorFactory
(
);
virtual
~
DataAccessDescriptorFactory
();
private
:
Reference
<
XComponentContext
>
m_xContext
;
};
DataAccessDescriptorFactory
::
DataAccessDescriptorFactory
(
const
Reference
<
XComponentContext
>&
_rxContext
)
:
m_xContext
(
_rxContext
)
DataAccessDescriptorFactory
::
DataAccessDescriptorFactory
()
{
}
...
...
@@ -247,31 +239,29 @@ namespace
Reference
<
XPropertySet
>
SAL_CALL
DataAccessDescriptorFactory
::
createDataAccessDescriptor
(
)
throw
(
RuntimeException
,
std
::
exception
)
{
return
new
DataAccessDescriptor
(
m_xContext
);
return
new
DataAccessDescriptor
();
}
struct
Instance
{
explicit
Instance
(
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
const
&
context
)
:
instance
(
new
DataAccessDescriptorFactory
(
context
))
explicit
Instance
()
:
instance
(
new
DataAccessDescriptorFactory
())
{}
css
::
uno
::
Reference
<
cppu
::
OWeakObject
>
instance
;
};
struct
Singleton
:
public
rtl
::
StaticWithArg
<
Instance
,
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
,
Singleton
>
public
rtl
::
Static
<
Instance
,
Singleton
>
{};
}
extern
"C"
SAL_DLLPUBLIC_EXPORT
css
::
uno
::
XInterface
*
SAL_CALL
com_sun_star_comp_dba_DataAccessDescriptorFactory
(
css
::
uno
::
XComponentContext
*
context
,
css
::
uno
::
XComponentContext
*
,
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
const
&
)
{
return
cppu
::
acquire
(
Singleton
::
get
(
context
).
instance
.
get
());
return
cppu
::
acquire
(
Singleton
::
get
().
instance
.
get
());
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment