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
7222ffb7
Kaydet (Commit)
7222ffb7
authored
Kas 29, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rewrite some (trivial) assignments inside if/while conditions: connectivity
Change-Id: I67d4bb92db04b5103b98a2855ae6069a054f171b
üst
bffac17a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
11 deletions
+16
-11
FDatabaseMetaData.cxx
connectivity/source/drivers/file/FDatabaseMetaData.cxx
+6
-6
ResultSet.cxx
connectivity/source/drivers/firebird/ResultSet.cxx
+4
-2
pq_tools.cxx
connectivity/source/drivers/postgresql/pq_tools.cxx
+6
-3
No files found.
connectivity/source/drivers/file/FDatabaseMetaData.cxx
Dosyayı görüntüle @
7222ffb7
...
...
@@ -274,8 +274,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
}
else
// no extension, filter myself
{
bool
bErg
=
false
;
do
for
(;;)
{
if
(
aURL
.
getExtension
().
isEmpty
())
{
...
...
@@ -287,12 +286,13 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
}
break
;
}
else
if
(
(
bErg
=
xResultSet
->
next
()
)
)
if
(
!
xResultSet
->
next
(
)
)
{
aName
=
xRow
->
getString
(
1
);
aURL
.
SetSmartURL
(
aName
);
break
;
}
}
while
(
bErg
);
aName
=
xRow
->
getString
(
1
);
aURL
.
SetSmartURL
(
aName
);
}
}
if
(
bNewRow
)
{
...
...
connectivity/source/drivers/firebird/ResultSet.cxx
Dosyayı görüntüle @
7222ffb7
...
...
@@ -429,7 +429,8 @@ OUString OResultSet::makeNumericString(const sal_Int32 nColumnIndex)
template
<
typename
T
>
T
OResultSet
::
retrieveValue
(
const
sal_Int32
nColumnIndex
,
const
ISC_SHORT
nType
)
{
if
((
m_bWasNull
=
isNull
(
nColumnIndex
)))
m_bWasNull
=
isNull
(
nColumnIndex
);
if
(
m_bWasNull
)
return
T
();
if
((
m_pSqlda
->
sqlvar
[
nColumnIndex
-
1
].
sqltype
&
~
1
)
==
nType
)
...
...
@@ -622,7 +623,8 @@ T OResultSet::safelyRetrieveValue(const sal_Int32 nColumnIndex, const ISC_SHORT
checkColumnIndex
(
nColumnIndex
);
checkRowIndex
();
if
((
m_bWasNull
=
isNull
(
nColumnIndex
)))
m_bWasNull
=
isNull
(
nColumnIndex
);
if
(
m_bWasNull
)
return
T
();
return
retrieveValue
<
T
>
(
nColumnIndex
,
nType
);
...
...
connectivity/source/drivers/postgresql/pq_tools.cxx
Dosyayı görüntüle @
7222ffb7
...
...
@@ -870,7 +870,8 @@ css::uno::Sequence< sal_Int32 > string2intarray( const OUString & str )
break
;
if
(
start
==
strlen
)
return
ret
;
}
while
(
(
c
=
str
.
iterateCodePoints
(
&
start
))
);
c
=
str
.
iterateCodePoints
(
&
start
);
}
while
(
c
);
do
{
if
(
!
iswdigit
(
c
))
...
...
@@ -878,7 +879,8 @@ css::uno::Sequence< sal_Int32 > string2intarray( const OUString & str )
if
(
start
==
strlen
)
return
ret
;
digits
+=
OUString
(
&
c
,
1
);
}
while
(
(
c
=
str
.
iterateCodePoints
(
&
start
))
);
c
=
str
.
iterateCodePoints
(
&
start
);
}
while
(
c
);
vec
.
push_back
(
digits
.
toInt32
()
);
do
{
...
...
@@ -886,7 +888,8 @@ css::uno::Sequence< sal_Int32 > string2intarray( const OUString & str )
break
;
if
(
start
==
strlen
)
return
ret
;
}
while
(
(
c
=
str
.
iterateCodePoints
(
&
start
))
);
c
=
str
.
iterateCodePoints
(
&
start
);
}
while
(
c
);
if
(
c
==
L'}'
)
break
;
if
(
str
.
iterateCodePoints
(
&
start
)
!=
L','
)
...
...
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