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
bd9eaa10
Kaydet (Commit)
bd9eaa10
authored
Ara 20, 2012
tarafından
Julien Nabet
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Some cppcheck cleaning in connectivity
Change-Id: I72cf68b193a4d6b16255f8b92e4c0262cd6cac78
üst
f20ed895
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
14 deletions
+8
-14
Awrapado.cxx
connectivity/source/drivers/ado/Awrapado.cxx
+4
-6
KStatement.cxx
connectivity/source/drivers/kab/KStatement.cxx
+2
-4
MacabStatement.cxx
connectivity/source/drivers/macab/MacabStatement.cxx
+2
-4
No files found.
connectivity/source/drivers/ado/Awrapado.cxx
Dosyayı görüntüle @
bd9eaa10
...
...
@@ -278,9 +278,7 @@ void WpADOCommand::put_ActiveConnection(/* [in] */ const OLEVariant& vConn)
void
WpADOCommand
::
Create
()
{
IClassFactory2
*
pInterface2
=
NULL
;
IUnknown
*
pOuter
=
NULL
;
HRESULT
hr
;
hr
=
CoGetClassObject
(
ADOS
::
CLSID_ADOCOMMAND_21
,
HRESULT
hr
=
CoGetClassObject
(
ADOS
::
CLSID_ADOCOMMAND_21
,
CLSCTX_INPROC_SERVER
,
NULL
,
IID_IClassFactory2
,
...
...
@@ -289,6 +287,7 @@ void WpADOCommand::Create()
if
(
!
FAILED
(
hr
)
)
{
ADOCommand
*
pCommand
=
NULL
;
IUnknown
*
pOuter
=
NULL
;
hr
=
pInterface2
->
CreateInstanceLic
(
pOuter
,
NULL
,
...
...
@@ -688,9 +687,7 @@ sal_Bool WpADOProperty::PutValue(const OLEVariant &aValVar)
void
WpADORecordset
::
Create
()
{
IClassFactory2
*
pInterface2
=
NULL
;
IUnknown
*
pOuter
=
NULL
;
HRESULT
hr
;
hr
=
CoGetClassObject
(
ADOS
::
CLSID_ADORECORDSET_21
,
HRESULT
hr
=
CoGetClassObject
(
ADOS
::
CLSID_ADORECORDSET_21
,
CLSCTX_INPROC_SERVER
,
NULL
,
IID_IClassFactory2
,
...
...
@@ -699,6 +696,7 @@ sal_Bool WpADOProperty::PutValue(const OLEVariant &aValVar)
if
(
!
FAILED
(
hr
)
)
{
ADORecordset
*
pRec
=
NULL
;
IUnknown
*
pOuter
=
NULL
;
hr
=
pInterface2
->
CreateInstanceLic
(
pOuter
,
NULL
,
ADOS
::
IID_ADORECORDSET_21
,
...
...
connectivity/source/drivers/kab/KStatement.cxx
Dosyayı görüntüle @
bd9eaa10
...
...
@@ -313,7 +313,6 @@ void KabCommonStatement::setKabFields(KabResultSet *pResult) const throw(SQLExce
void
KabCommonStatement
::
selectAddressees
(
KabResultSet
*
pResult
)
const
throw
(
SQLException
)
{
const
OSQLParseNode
*
pParseNode
;
KabCondition
*
pCondition
;
pParseNode
=
m_aSQLIterator
.
getWhereTree
();
if
(
pParseNode
!=
NULL
)
...
...
@@ -322,7 +321,7 @@ void KabCommonStatement::selectAddressees(KabResultSet *pResult) const throw(SQL
{
resetParameters
();
pParseNode
=
pParseNode
->
getChild
(
1
);
pCondition
=
analyseWhereClause
(
pParseNode
);
KabCondition
*
pCondition
=
analyseWhereClause
(
pParseNode
);
if
(
pCondition
->
isAlwaysTrue
())
pResult
->
allKabAddressees
();
else
if
(
!
pCondition
->
isAlwaysFalse
())
...
...
@@ -339,7 +338,6 @@ void KabCommonStatement::selectAddressees(KabResultSet *pResult) const throw(SQL
void
KabCommonStatement
::
sortAddressees
(
KabResultSet
*
pResult
)
const
throw
(
SQLException
)
{
const
OSQLParseNode
*
pParseNode
;
KabOrder
*
pOrder
;
pParseNode
=
m_aSQLIterator
.
getOrderTree
();
if
(
pParseNode
!=
NULL
)
...
...
@@ -347,7 +345,7 @@ void KabCommonStatement::sortAddressees(KabResultSet *pResult) const throw(SQLEx
if
(
SQL_ISRULE
(
pParseNode
,
opt_order_by_clause
))
{
pParseNode
=
pParseNode
->
getChild
(
2
);
pOrder
=
analyseOrderByClause
(
pParseNode
);
KabOrder
*
pOrder
=
analyseOrderByClause
(
pParseNode
);
pResult
->
sortKabAddressees
(
pOrder
);
delete
pOrder
;
}
...
...
connectivity/source/drivers/macab/MacabStatement.cxx
Dosyayı görüntüle @
bd9eaa10
...
...
@@ -321,7 +321,6 @@ void MacabCommonStatement::setMacabFields(MacabResultSet *pResult) const throw(S
void
MacabCommonStatement
::
selectRecords
(
MacabResultSet
*
pResult
)
const
throw
(
SQLException
)
{
const
OSQLParseNode
*
pParseNode
;
MacabCondition
*
pCondition
;
pParseNode
=
m_aSQLIterator
.
getWhereTree
();
if
(
pParseNode
!=
NULL
)
...
...
@@ -332,7 +331,7 @@ void MacabCommonStatement::selectRecords(MacabResultSet *pResult) const throw(SQ
// support them, uncomment this line and fix resetParameters.
//resetParameters();
pParseNode
=
pParseNode
->
getChild
(
1
);
pCondition
=
analyseWhereClause
(
pParseNode
);
MacabCondition
*
pCondition
=
analyseWhereClause
(
pParseNode
);
if
(
pCondition
->
isAlwaysTrue
())
pResult
->
allMacabRecords
();
else
if
(
!
pCondition
->
isAlwaysFalse
())
...
...
@@ -349,7 +348,6 @@ void MacabCommonStatement::selectRecords(MacabResultSet *pResult) const throw(SQ
void
MacabCommonStatement
::
sortRecords
(
MacabResultSet
*
pResult
)
const
throw
(
SQLException
)
{
const
OSQLParseNode
*
pParseNode
;
MacabOrder
*
pOrder
;
pParseNode
=
m_aSQLIterator
.
getOrderTree
();
if
(
pParseNode
!=
NULL
)
...
...
@@ -357,7 +355,7 @@ void MacabCommonStatement::sortRecords(MacabResultSet *pResult) const throw(SQLE
if
(
SQL_ISRULE
(
pParseNode
,
opt_order_by_clause
))
{
pParseNode
=
pParseNode
->
getChild
(
2
);
pOrder
=
analyseOrderByClause
(
pParseNode
);
MacabOrder
*
pOrder
=
analyseOrderByClause
(
pParseNode
);
pResult
->
sortMacabRecords
(
pOrder
);
delete
pOrder
;
}
...
...
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