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
15bdb0ae
Kaydet (Commit)
15bdb0ae
authored
Nis 01, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace remaining getCppuType et al with cppu::UnoType
Change-Id: I0ecb96d6f26c827640f3329c81884001f860090d
üst
018e8538
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
macros.hxx
include/ucbhelper/macros.hxx
+2
-2
propertyvalueset.cxx
ucbhelper/source/provider/propertyvalueset.cxx
+2
-2
resultset.cxx
ucbhelper/source/provider/resultset.cxx
+1
-1
resultsetmetadata.cxx
ucbhelper/source/provider/resultsetmetadata.cxx
+3
-3
No files found.
include/ucbhelper/macros.hxx
Dosyayı görüntüle @
15bdb0ae
...
@@ -32,8 +32,8 @@
...
@@ -32,8 +32,8 @@
#define CPPU_TYPE( T )
getCppuType( static_cast< T * >( 0 )
)
#define CPPU_TYPE( T )
cppu::UnoType<T>::get(
)
#define CPPU_TYPE_REF( T ) CPPU_TYPE(
com::sun::star::uno::Reference< T >
)
#define CPPU_TYPE_REF( T ) CPPU_TYPE(
T
)
// XTypeProvider impl. internals
// XTypeProvider impl. internals
...
...
ucbhelper/source/provider/propertyvalueset.cxx
Dosyayı görüntüle @
15bdb0ae
...
@@ -226,7 +226,7 @@ class PropertyValues : public PropertyValuesVector {};
...
@@ -226,7 +226,7 @@ class PropertyValues : public PropertyValuesVector {};
GETVALUE_IMPL_TYPE( _type_, \
GETVALUE_IMPL_TYPE( _type_, \
_type_name_, \
_type_name_, \
_member_name_, \
_member_name_, \
getCppuType( static_cast< const _type_ * >( 0 )
) )
cppu::UnoType<_type_>::get(
) )
#define SETVALUE_IMPL( _prop_name_, _type_name_, _member_name_, _value_ ) \
#define SETVALUE_IMPL( _prop_name_, _type_name_, _member_name_, _value_ ) \
\
\
...
@@ -333,7 +333,7 @@ sal_Bool SAL_CALL PropertyValueSet::getBoolean( sal_Int32 columnIndex )
...
@@ -333,7 +333,7 @@ sal_Bool SAL_CALL PropertyValueSet::getBoolean( sal_Int32 columnIndex )
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
{
GETVALUE_IMPL_TYPE
(
GETVALUE_IMPL_TYPE
(
bool
,
BOOLEAN_VALUE_SET
,
bBoolean
,
getCppuBooleanType
()
);
bool
,
BOOLEAN_VALUE_SET
,
bBoolean
,
cppu
::
UnoType
<
bool
>::
get
()
);
}
}
...
...
ucbhelper/source/provider/resultset.cxx
Dosyayı görüntüle @
15bdb0ae
...
@@ -51,7 +51,7 @@ static const uno::Type& sal_Int32_getCppuType()
...
@@ -51,7 +51,7 @@ static const uno::Type& sal_Int32_getCppuType()
static
const
uno
::
Type
&
sal_Bool_getCppuType
()
static
const
uno
::
Type
&
sal_Bool_getCppuType
()
{
{
return
getCppuBooleanType
();
return
cppu
::
UnoType
<
bool
>::
get
();
}
}
static
const
PropertyInfo
aPropertyTable
[]
=
static
const
PropertyInfo
aPropertyTable
[]
=
...
...
ucbhelper/source/provider/resultsetmetadata.cxx
Dosyayı görüntüle @
15bdb0ae
...
@@ -405,7 +405,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column )
...
@@ -405,7 +405,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column )
return
DataType
::
SQLNULL
;
return
DataType
::
SQLNULL
;
if
(
m_aProps
.
getConstArray
()[
column
-
1
].
Type
if
(
m_aProps
.
getConstArray
()[
column
-
1
].
Type
==
getCppuVoidType
()
)
==
cppu
::
UnoType
<
cppu
::
UnoVoidType
>::
get
()
)
{
{
// No type given. Try UCB's Properties Manager...
// No type given. Try UCB's Properties Manager...
...
@@ -458,7 +458,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column )
...
@@ -458,7 +458,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column )
if
(
rType
==
cppu
::
UnoType
<
OUString
>::
get
()
)
if
(
rType
==
cppu
::
UnoType
<
OUString
>::
get
()
)
nType
=
DataType
::
VARCHAR
;
// XRow::getString
nType
=
DataType
::
VARCHAR
;
// XRow::getString
else
if
(
rType
==
getCppuBooleanType
()
)
else
if
(
rType
==
cppu
::
UnoType
<
bool
>::
get
()
)
nType
=
DataType
::
BIT
;
// XRow::getBoolean
nType
=
DataType
::
BIT
;
// XRow::getBoolean
else
if
(
rType
==
cppu
::
UnoType
<
sal_Int32
>::
get
()
)
else
if
(
rType
==
cppu
::
UnoType
<
sal_Int32
>::
get
()
)
nType
=
DataType
::
INTEGER
;
// XRow::getInt
nType
=
DataType
::
INTEGER
;
// XRow::getInt
...
@@ -472,7 +472,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column )
...
@@ -472,7 +472,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column )
nType
=
DataType
::
REAL
;
// XRow::getFloat
nType
=
DataType
::
REAL
;
// XRow::getFloat
else
if
(
rType
==
cppu
::
UnoType
<
double
>::
get
()
)
else
if
(
rType
==
cppu
::
UnoType
<
double
>::
get
()
)
nType
=
DataType
::
DOUBLE
;
// XRow::getDouble
nType
=
DataType
::
DOUBLE
;
// XRow::getDouble
else
if
(
rType
==
getCppuType
(
static_cast
<
const
Sequence
<
sal_Int8
>
*
>
(
0
)
)
)
else
if
(
rType
==
cppu
::
UnoType
<
Sequence
<
sal_Int8
>>::
get
(
)
)
nType
=
DataType
::
VARBINARY
;
// XRow::getBytes
nType
=
DataType
::
VARBINARY
;
// XRow::getBytes
else
if
(
rType
==
cppu
::
UnoType
<
Date
>::
get
()
)
else
if
(
rType
==
cppu
::
UnoType
<
Date
>::
get
()
)
nType
=
DataType
::
DATE
;
// XRow::getDate
nType
=
DataType
::
DATE
;
// XRow::getDate
...
...
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