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
1ddbbfdd
Kaydet (Commit)
1ddbbfdd
authored
Kas 10, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:nullptr (automatic rewrite)
Change-Id: Ie77375d781164232ea0cd94c3d2a5d027c49669e
üst
822a0b70
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
25 deletions
+25
-25
mysqlc_connection.cxx
mysqlc/source/mysqlc_connection.cxx
+1
-1
mysqlc_databasemetadata.cxx
mysqlc/source/mysqlc_databasemetadata.cxx
+2
-2
mysqlc_driver.cxx
mysqlc/source/mysqlc_driver.cxx
+4
-4
mysqlc_general.hxx
mysqlc/source/mysqlc_general.hxx
+2
-2
mysqlc_resultset.cxx
mysqlc/source/mysqlc_resultset.cxx
+9
-9
mysqlc_services.cxx
mysqlc/source/mysqlc_services.cxx
+2
-2
mysqlc_statement.cxx
mysqlc/source/mysqlc_statement.cxx
+2
-2
mysqlc_subcomponent.hxx
mysqlc/source/mysqlc_subcomponent.hxx
+2
-2
mysqlc_types.cxx
mysqlc/source/mysqlc_types.cxx
+1
-1
No files found.
mysqlc/source/mysqlc_connection.cxx
Dosyayı görüntüle @
1ddbbfdd
...
...
@@ -63,7 +63,7 @@ using ::osl::MutexGuard;
OConnection
::
OConnection
(
MysqlCDriver
&
_rDriver
,
sql
::
Driver
*
_cppDriver
)
:
OMetaConnection_BASE
(
m_aMutex
)
,
OSubComponent
<
OConnection
,
OConnection_BASE
>
(
static_cast
<
cppu
::
OWeakObject
*>
(
&
_rDriver
),
this
)
,
m_xMetaData
(
NULL
)
,
m_xMetaData
(
nullptr
)
,
m_rDriver
(
_rDriver
)
,
cppDriver
(
_cppDriver
)
,
m_bClosed
(
false
)
...
...
mysqlc/source/mysqlc_databasemetadata.cxx
Dosyayı görüntüle @
1ddbbfdd
...
...
@@ -1351,7 +1351,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedureColumns(
{
OSL_TRACE
(
"ODatabaseMetaData::getProcedureColumns"
);
// Currently there is no information available
return
NULL
;
return
nullptr
;
}
Reference
<
XResultSet
>
SAL_CALL
ODatabaseMetaData
::
getProcedures
(
...
...
@@ -1715,7 +1715,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs(
{
OSL_TRACE
(
"ODatabaseMetaData::getUDTs"
);
mysqlc_sdbc_driver
::
throwFeatureNotImplementedException
(
"ODatabaseMetaData::getUDTs"
,
*
this
);
return
NULL
;
return
nullptr
;
}
/*
...
...
mysqlc/source/mysqlc_driver.cxx
Dosyayı görüntüle @
1ddbbfdd
...
...
@@ -45,12 +45,12 @@ MysqlCDriver::MysqlCDriver(const Reference< XMultiServiceFactory >& _rxFactory)
:
ODriver_BASE
(
m_aMutex
)
,
m_xFactory
(
_rxFactory
)
#ifndef SYSTEM_MYSQL_CPPCONN
,
m_hCppConnModule
(
NULL
)
,
m_hCppConnModule
(
nullptr
)
,
m_bAttemptedLoadCppConn
(
false
)
#endif
{
OSL_TRACE
(
"MysqlCDriver::MysqlCDriver"
);
cppDriver
=
NULL
;
cppDriver
=
nullptr
;
}
void
MysqlCDriver
::
disposing
()
...
...
@@ -198,7 +198,7 @@ Reference< XConnection > SAL_CALL MysqlCDriver::connect(const rtl::OUString& url
OSL_TRACE
(
"MysqlCDriver::connect"
);
if
(
!
acceptsURL
(
url
))
{
return
NULL
;
return
nullptr
;
}
if
(
!
cppDriver
)
...
...
@@ -297,7 +297,7 @@ void release(oslInterlockedCount& _refCount,
{
::
osl
::
MutexGuard
aGuard
(
rBHelper
.
rMutex
);
xParent
=
_xInterface
;
_xInterface
=
NULL
;
_xInterface
=
nullptr
;
}
// First dispose
...
...
mysqlc/source/mysqlc_general.hxx
Dosyayı görüntüle @
1ddbbfdd
...
...
@@ -34,14 +34,14 @@ namespace mysqlc_sdbc_driver
void
throwFeatureNotImplementedException
(
const
sal_Char
*
_pAsciiFeatureName
,
const
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>&
_rxContext
,
const
css
::
uno
::
Any
*
_pNextException
=
NULL
const
css
::
uno
::
Any
*
_pNextException
=
nullptr
)
throw
(
css
::
sdbc
::
SQLException
);
void
throwInvalidArgumentException
(
const
sal_Char
*
_pAsciiFeatureName
,
const
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>&
_rxContext
,
const
css
::
uno
::
Any
*
_pNextException
=
NULL
const
css
::
uno
::
Any
*
_pNextException
=
nullptr
)
throw
(
css
::
sdbc
::
SQLException
);
...
...
mysqlc/source/mysqlc_resultset.cxx
Dosyayı görüntüle @
1ddbbfdd
...
...
@@ -76,7 +76,7 @@ OResultSet::OResultSet(OCommonStatement * pStmt, sql::ResultSet * result, rtl_Te
:
OResultSet_BASE
(
m_aMutex
)
,
OPropertySetHelper
(
OResultSet_BASE
::
rBHelper
)
,
m_aStatement
(
static_cast
<
OWeakObject
*>
(
pStmt
))
,
m_xMetaData
(
NULL
)
,
m_xMetaData
(
nullptr
)
,
m_result
(
result
)
,
fieldCount
(
0
)
,
m_encoding
(
_encoding
)
...
...
@@ -102,8 +102,8 @@ void OResultSet::disposing()
MutexGuard
aGuard
(
m_aMutex
);
m_aStatement
=
NULL
;
m_xMetaData
=
NULL
;
m_aStatement
=
nullptr
;
m_xMetaData
=
nullptr
;
}
Any
SAL_CALL
OResultSet
::
queryInterface
(
const
Type
&
rType
)
...
...
@@ -165,7 +165,7 @@ Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream(sal_Int32 column)
checkColumnIndex
(
column
);
mysqlc_sdbc_driver
::
throwFeatureNotImplementedException
(
"OResultSet::getBinaryStream"
,
*
this
);
return
NULL
;
return
nullptr
;
}
Reference
<
XInputStream
>
SAL_CALL
OResultSet
::
getCharacterStream
(
sal_Int32
column
)
...
...
@@ -177,7 +177,7 @@ Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream(sal_Int32 colu
checkColumnIndex
(
column
);
mysqlc_sdbc_driver
::
throwFeatureNotImplementedException
(
"OResultSet::getCharacterStream"
,
*
this
);
return
NULL
;
return
nullptr
;
}
sal_Bool
SAL_CALL
OResultSet
::
getBoolean
(
sal_Int32
column
)
...
...
@@ -370,7 +370,7 @@ Reference< XArray > SAL_CALL OResultSet::getArray(sal_Int32 column)
checkColumnIndex
(
column
);
mysqlc_sdbc_driver
::
throwFeatureNotImplementedException
(
"OResultSet::getArray"
,
*
this
);
return
NULL
;
return
nullptr
;
}
Reference
<
XClob
>
SAL_CALL
OResultSet
::
getClob
(
sal_Int32
column
)
...
...
@@ -382,7 +382,7 @@ Reference< XClob > SAL_CALL OResultSet::getClob(sal_Int32 column)
checkColumnIndex
(
column
);
mysqlc_sdbc_driver
::
throwFeatureNotImplementedException
(
"OResultSet::getClob"
,
*
this
);
return
NULL
;
return
nullptr
;
}
Reference
<
XBlob
>
SAL_CALL
OResultSet
::
getBlob
(
sal_Int32
column
)
...
...
@@ -394,7 +394,7 @@ Reference< XBlob > SAL_CALL OResultSet::getBlob(sal_Int32 column)
checkColumnIndex
(
column
);
mysqlc_sdbc_driver
::
throwFeatureNotImplementedException
(
"OResultSet::getBlob"
,
*
this
);
return
NULL
;
return
nullptr
;
}
Reference
<
XRef
>
SAL_CALL
OResultSet
::
getRef
(
sal_Int32
column
)
...
...
@@ -406,7 +406,7 @@ Reference< XRef > SAL_CALL OResultSet::getRef(sal_Int32 column)
checkColumnIndex
(
column
);
mysqlc_sdbc_driver
::
throwFeatureNotImplementedException
(
"OResultSet::getRef"
,
*
this
);
return
NULL
;
return
nullptr
;
}
Any
SAL_CALL
OResultSet
::
getObject
(
sal_Int32
column
,
const
Reference
<
XNameAccess
>&
/* typeMap */
)
...
...
mysqlc/source/mysqlc_services.cxx
Dosyayı görüntüle @
1ddbbfdd
...
...
@@ -63,7 +63,7 @@ struct ProviderRequest
{
if
(
!
xRet
.
is
()
&&
(
Implname
==
sImplementationName
))
{
try
{
xRet
=
creator
(
xServiceManager
,
sImplementationName
,
Factory
,
Services
,
0
);
xRet
=
creator
(
xServiceManager
,
sImplementationName
,
Factory
,
Services
,
nullptr
);
}
catch
(...)
{
}
}
...
...
@@ -78,7 +78,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(
void
*
pServiceManager
,
void
*
/* pRegistryKey */
)
{
void
*
pRet
=
0
;
void
*
pRet
=
nullptr
;
if
(
pServiceManager
)
{
ProviderRequest
aReq
(
pServiceManager
,
pImplementationName
);
...
...
mysqlc/source/mysqlc_statement.cxx
Dosyayı görüntüle @
1ddbbfdd
...
...
@@ -75,7 +75,7 @@ void OCommonStatement::disposeResultSet()
OSL_TRACE
(
"OCommonStatement::disposeResultSet"
);
// free the cursor if alive
delete
cppStatement
;
cppStatement
=
NULL
;
cppStatement
=
nullptr
;
}
void
OCommonStatement
::
disposing
()
...
...
@@ -87,7 +87,7 @@ void OCommonStatement::disposing()
if
(
m_pConnection
)
{
m_pConnection
->
release
();
m_pConnection
=
NULL
;
m_pConnection
=
nullptr
;
}
delete
cppStatement
;
...
...
mysqlc/source/mysqlc_subcomponent.hxx
Dosyayı görüntüle @
1ddbbfdd
...
...
@@ -108,7 +108,7 @@ namespace connectivity
if
(
!--
s_nRefCount
)
{
delete
s_pProps
;
s_pProps
=
NULL
;
s_pProps
=
nullptr
;
}
}
...
...
@@ -134,7 +134,7 @@ namespace connectivity
sal_Int32
OPropertyArrayUsageHelper
<
TYPE
>::
s_nRefCount
=
0
;
template
<
class
TYPE
>
::
cppu
::
IPropertyArrayHelper
*
OPropertyArrayUsageHelper
<
TYPE
>::
s_pProps
=
NULL
;
::
cppu
::
IPropertyArrayHelper
*
OPropertyArrayUsageHelper
<
TYPE
>::
s_pProps
=
nullptr
;
template
<
class
TYPE
>
::
osl
::
Mutex
OPropertyArrayUsageHelper
<
TYPE
>::
s_aMutex
;
...
...
mysqlc/source/mysqlc_types.cxx
Dosyayı görüntüle @
1ddbbfdd
...
...
@@ -777,7 +777,7 @@ TypeInfoDef mysqlc_types[] = {
// ----------- MySQL-Type: TIMESTAMP SDBC-Type: TIMESTAMP ----------
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
false
,
0
,
false
,
false
,
false
,
0
,
0
,
0
,
0
,
0
,
0
nullptr
,
0
,
0
,
nullptr
,
nullptr
,
nullptr
,
0
,
false
,
0
,
false
,
false
,
false
,
nullptr
,
0
,
0
,
0
,
0
,
0
}
};
...
...
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