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
35ce36b7
Kaydet (Commit)
35ce36b7
authored
Ock 17, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Some more loplugin:cstylecast: mysqlc
Change-Id: I7849658606931b231c2bde0c8143bc1f325c80d4
üst
30f5040f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
mysqlc_driver.cxx
mysqlc/source/mysqlc_driver.cxx
+1
-1
mysqlc_preparedstatement.cxx
mysqlc/source/mysqlc_preparedstatement.cxx
+1
-1
mysqlc_resultset.cxx
mysqlc/source/mysqlc_resultset.cxx
+1
-1
No files found.
mysqlc/source/mysqlc_driver.cxx
Dosyayı görüntüle @
35ce36b7
...
@@ -162,7 +162,7 @@ void MysqlCDriver::impl_initCppConn_lck_throw()
...
@@ -162,7 +162,7 @@ void MysqlCDriver::impl_initCppConn_lck_throw()
const
rtl
::
OUString
sSymbolName
=
"sql_mysql_get_driver_instance"
;
const
rtl
::
OUString
sSymbolName
=
"sql_mysql_get_driver_instance"
;
typedef
void
*
(
*
FGetMySQLDriver
)();
typedef
void
*
(
*
FGetMySQLDriver
)();
const
FGetMySQLDriver
pFactoryFunction
=
(
FGetMySQLDriver
)
(
osl_getFunctionSymbol
(
m_hCppConnModule
,
sSymbolName
.
pData
)
);
const
FGetMySQLDriver
pFactoryFunction
=
reinterpret_cast
<
FGetMySQLDriver
>
(
osl_getFunctionSymbol
(
m_hCppConnModule
,
sSymbolName
.
pData
)
);
if
(
!
pFactoryFunction
)
if
(
!
pFactoryFunction
)
{
{
OSL_FAIL
(
"MysqlCDriver::impl_initCppConn_lck_throw: could not find the factory symbol in "
CPPCONN_LIB
"!"
);
OSL_FAIL
(
"MysqlCDriver::impl_initCppConn_lck_throw: could not find the factory symbol in "
CPPCONN_LIB
"!"
);
...
...
mysqlc/source/mysqlc_preparedstatement.cxx
Dosyayı görüntüle @
35ce36b7
...
@@ -721,7 +721,7 @@ void SAL_CALL OPreparedStatement::setBytes(sal_Int32 parameter, const Sequence<
...
@@ -721,7 +721,7 @@ void SAL_CALL OPreparedStatement::setBytes(sal_Int32 parameter, const Sequence<
checkDisposed
(
OPreparedStatement
::
rBHelper
.
bDisposed
);
checkDisposed
(
OPreparedStatement
::
rBHelper
.
bDisposed
);
checkParameterIndex
(
parameter
);
checkParameterIndex
(
parameter
);
std
::
string
blobby
(
(
char
*
)
x
.
getConstArray
(
),
x
.
getLength
());
std
::
string
blobby
(
reinterpret_cast
<
char
const
*>
(
x
.
getConstArray
()
),
x
.
getLength
());
try
{
try
{
static_cast
<
sql
::
PreparedStatement
*>
(
cppStatement
)
->
setString
(
parameter
,
blobby
);
static_cast
<
sql
::
PreparedStatement
*>
(
cppStatement
)
->
setString
(
parameter
,
blobby
);
}
catch
(
const
sql
::
MethodNotImplementedException
&
)
{
}
catch
(
const
sql
::
MethodNotImplementedException
&
)
{
...
...
mysqlc/source/mysqlc_resultset.cxx
Dosyayı görüntüle @
35ce36b7
...
@@ -224,7 +224,7 @@ Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes(sal_Int32 column)
...
@@ -224,7 +224,7 @@ Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes(sal_Int32 column)
if
(
!
val
.
length
())
{
if
(
!
val
.
length
())
{
return
Sequence
<
sal_Int8
>
();
return
Sequence
<
sal_Int8
>
();
}
else
{
}
else
{
return
Sequence
<
sal_Int8
>
(
(
sal_Int8
*
)
val
.
c_str
(
),
val
.
length
());
return
Sequence
<
sal_Int8
>
(
reinterpret_cast
<
sal_Int8
const
*>
(
val
.
c_str
()
),
val
.
length
());
}
}
}
}
...
...
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