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
7938279a
Kaydet (Commit)
7938279a
authored
Nis 04, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
/include/connectivity/dbtools.hxx: sal_Bool->bool
Change-Id: Ie1e1952e3d39d53756583482826dfc3b65b5f9e0
üst
a20b62da
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
18 deletions
+18
-18
dbtools.cxx
connectivity/source/commontools/dbtools.cxx
+12
-12
controlwizard.cxx
extensions/source/dbpilots/controlwizard.cxx
+1
-1
formlinkdialog.cxx
extensions/source/propctrlr/formlinkdialog.cxx
+1
-1
DatabaseForm.cxx
forms/source/component/DatabaseForm.cxx
+1
-1
dbtools.hxx
include/connectivity/dbtools.hxx
+3
-3
No files found.
connectivity/source/commontools/dbtools.cxx
Dosyayı görüntüle @
7938279a
...
...
@@ -458,7 +458,7 @@ SharedConnection lcl_connectRowSet(const Reference< XRowSet>& _rxRowSet, const R
}
Reference
<
XConnection
>
connectRowset
(
const
Reference
<
XRowSet
>&
_rxRowSet
,
const
Reference
<
XComponentContext
>&
_rxContext
,
sal_B
ool
_bSetAsActiveConnection
)
SAL_THROW
(
(
SQLException
,
WrappedTargetException
,
RuntimeException
)
)
b
ool
_bSetAsActiveConnection
)
SAL_THROW
(
(
SQLException
,
WrappedTargetException
,
RuntimeException
)
)
{
SharedConnection
xConnection
=
lcl_connectRowSet
(
_rxRowSet
,
_rxContext
,
_bSetAsActiveConnection
,
true
);
return
xConnection
.
getTyped
();
...
...
@@ -1235,7 +1235,7 @@ Reference< XSingleSelectQueryComposer > getComposedRowSetStatement( const Refere
Reference
<
XSingleSelectQueryComposer
>
xComposer
;
try
{
Reference
<
XConnection
>
xConn
=
connectRowset
(
Reference
<
XRowSet
>
(
_rxRowSet
,
UNO_QUERY
),
_rxContext
,
sal_T
rue
);
Reference
<
XConnection
>
xConn
=
connectRowset
(
Reference
<
XRowSet
>
(
_rxRowSet
,
UNO_QUERY
),
_rxContext
,
t
rue
);
if
(
xConn
.
is
()
)
// implies _rxRowSet.is()
{
// build the statement the row set is based on (can't use the ActiveCommand property of the set
...
...
@@ -1447,10 +1447,10 @@ void showError(const SQLExceptionInfo& _rInfo,
}
}
sal_B
ool
implUpdateObject
(
const
Reference
<
XRowUpdate
>&
_rxUpdatedObject
,
b
ool
implUpdateObject
(
const
Reference
<
XRowUpdate
>&
_rxUpdatedObject
,
const
sal_Int32
_nColumnIndex
,
const
Any
&
_rValue
)
SAL_THROW
(
(
SQLException
,
RuntimeException
)
)
{
sal_Bool
bSuccessfullyReRouted
=
sal_T
rue
;
bool
bSuccessfullyReRouted
=
t
rue
;
switch
(
_rValue
.
getValueTypeClass
())
{
case
TypeClass_ANY
:
...
...
@@ -1511,7 +1511,7 @@ sal_Bool implUpdateObject(const Reference< XRowUpdate >& _rxUpdatedObject,
if
(
_rValue
.
getValueType
()
==
::
getCppuType
((
const
Sequence
<
sal_Int8
>
*
)
0
))
_rxUpdatedObject
->
updateBytes
(
_nColumnIndex
,
*
(
Sequence
<
sal_Int8
>*
)
_rValue
.
getValue
());
else
bSuccessfullyReRouted
=
sal_F
alse
;
bSuccessfullyReRouted
=
f
alse
;
break
;
case
TypeClass_STRUCT
:
if
(
_rValue
.
getValueType
()
==
::
getCppuType
((
const
DateTime
*
)
0
))
...
...
@@ -1521,7 +1521,7 @@ sal_Bool implUpdateObject(const Reference< XRowUpdate >& _rxUpdatedObject,
else
if
(
_rValue
.
getValueType
()
==
::
getCppuType
((
const
Time
*
)
0
))
_rxUpdatedObject
->
updateTime
(
_nColumnIndex
,
*
(
Time
*
)
_rValue
.
getValue
());
else
bSuccessfullyReRouted
=
sal_F
alse
;
bSuccessfullyReRouted
=
f
alse
;
break
;
case
TypeClass_INTERFACE
:
...
...
@@ -1534,16 +1534,16 @@ sal_Bool implUpdateObject(const Reference< XRowUpdate >& _rxUpdatedObject,
}
// run through
default
:
bSuccessfullyReRouted
=
sal_F
alse
;
bSuccessfullyReRouted
=
f
alse
;
}
return
bSuccessfullyReRouted
;
}
sal_B
ool
implSetObject
(
const
Reference
<
XParameters
>&
_rxParameters
,
b
ool
implSetObject
(
const
Reference
<
XParameters
>&
_rxParameters
,
const
sal_Int32
_nColumnIndex
,
const
Any
&
_rValue
)
SAL_THROW
(
(
SQLException
,
RuntimeException
)
)
{
sal_Bool
bSuccessfullyReRouted
=
sal_T
rue
;
bool
bSuccessfullyReRouted
=
t
rue
;
switch
(
_rValue
.
getValueTypeClass
())
{
case
TypeClass_UNSIGNED_HYPER
:
...
...
@@ -1618,7 +1618,7 @@ sal_Bool implSetObject( const Reference< XParameters >& _rxParameters,
_rxParameters
->
setBytes
(
_nColumnIndex
,
*
(
Sequence
<
sal_Int8
>*
)
_rValue
.
getValue
());
}
else
bSuccessfullyReRouted
=
sal_F
alse
;
bSuccessfullyReRouted
=
f
alse
;
break
;
case
TypeClass_STRUCT
:
if
(
_rValue
.
getValueType
()
==
::
getCppuType
((
const
DateTime
*
)
0
))
...
...
@@ -1628,7 +1628,7 @@ sal_Bool implSetObject( const Reference< XParameters >& _rxParameters,
else
if
(
_rValue
.
getValueType
()
==
::
getCppuType
((
const
Time
*
)
0
))
_rxParameters
->
setTime
(
_nColumnIndex
,
*
(
Time
*
)
_rValue
.
getValue
());
else
bSuccessfullyReRouted
=
sal_F
alse
;
bSuccessfullyReRouted
=
f
alse
;
break
;
case
TypeClass_INTERFACE
:
...
...
@@ -1641,7 +1641,7 @@ sal_Bool implSetObject( const Reference< XParameters >& _rxParameters,
}
// run through
default
:
bSuccessfullyReRouted
=
sal_F
alse
;
bSuccessfullyReRouted
=
f
alse
;
}
...
...
extensions/source/dbpilots/controlwizard.cxx
Dosyayı görüntüle @
7938279a
...
...
@@ -565,7 +565,7 @@ namespace dbp
Reference
<
XConnection
>
xConnection
;
m_aContext
.
bEmbedded
=
::
dbtools
::
isEmbeddedInDatabase
(
m_aContext
.
xForm
,
xConnection
);
if
(
!
m_aContext
.
bEmbedded
)
xConnection
=
::
dbtools
::
connectRowset
(
m_aContext
.
xRowSet
,
m_xContext
,
sal_T
rue
);
xConnection
=
::
dbtools
::
connectRowset
(
m_aContext
.
xRowSet
,
m_xContext
,
t
rue
);
// get the fields
if
(
xConnection
.
is
())
...
...
extensions/source/propctrlr/formlinkdialog.cxx
Dosyayı görüntüle @
7938279a
...
...
@@ -448,7 +448,7 @@ namespace pcr
_rxConnection
.
set
(
_rxFormProps
->
getPropertyValue
(
PROPERTY_ACTIVE_CONNECTION
),
UNO_QUERY
);
if
(
!
_rxConnection
.
is
()
)
_rxConnection
=
::
dbtools
::
connectRowset
(
Reference
<
XRowSet
>
(
_rxFormProps
,
UNO_QUERY
),
m_xContext
,
sal_T
rue
);
_rxConnection
=
::
dbtools
::
connectRowset
(
Reference
<
XRowSet
>
(
_rxFormProps
,
UNO_QUERY
),
m_xContext
,
t
rue
);
}
...
...
forms/source/component/DatabaseForm.cxx
Dosyayı görüntüle @
7938279a
...
...
@@ -2834,7 +2834,7 @@ sal_Bool ODatabaseForm::implEnsureConnection()
Reference
<
XConnection
>
xConnection
=
connectRowset
(
Reference
<
XRowSet
>
(
m_xAggregate
,
UNO_QUERY
),
m_xContext
,
sal_T
rue
// set a calculated connection as ActiveConnection
t
rue
// set a calculated connection as ActiveConnection
);
return
xConnection
.
is
();
}
...
...
include/connectivity/dbtools.hxx
Dosyayı görüntüle @
7938279a
...
...
@@ -148,7 +148,7 @@ namespace dbtools
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XConnection
>
connectRowset
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XRowSet
>&
_rxRowSet
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>&
_rxContext
,
sal_B
ool
_bSetAsActiveConnection
b
ool
_bSetAsActiveConnection
)
SAL_THROW
(
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
);
...
...
@@ -557,7 +557,7 @@ namespace dbtools
<TRUE/> if the update request was successfully re-routed to one of the other updateXXX methods
*/
OOO_DLLPUBLIC_DBTOOLS
sal_B
ool
implUpdateObject
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XRowUpdate
>&
_rxUpdatedObject
,
b
ool
implUpdateObject
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XRowUpdate
>&
_rxUpdatedObject
,
const
sal_Int32
_nColumnIndex
,
const
::
com
::
sun
::
star
::
uno
::
Any
&
_rValue
)
SAL_THROW
(
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
);
...
...
@@ -617,7 +617,7 @@ namespace dbtools
<TRUE/> if the update request was successfully re-routed to one of the other updateXXX methods
*/
OOO_DLLPUBLIC_DBTOOLS
sal_B
ool
implSetObject
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XParameters
>&
_rxParameters
,
b
ool
implSetObject
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XParameters
>&
_rxParameters
,
const
sal_Int32
_nColumnIndex
,
const
::
com
::
sun
::
star
::
uno
::
Any
&
_rValue
)
SAL_THROW
(
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
);
...
...
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