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
7b028f4a
Kaydet (Commit)
7b028f4a
authored
Ara 15, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
String::AllocBuffer -> OUStringBuffer
Change-Id: I66489516df4b363fd7ed61e90471efaeb1235333
üst
243630f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
ETable.cxx
connectivity/source/drivers/flat/ETable.cxx
+5
-9
No files found.
connectivity/source/drivers/flat/ETable.cxx
Dosyayı görüntüle @
7b028f4a
...
...
@@ -674,23 +674,20 @@ sal_Bool OFlatTable::fetchRow(OValueRefRow& _rRow,const OSQLColumns & _rCols,sal
case
DataType
:
:
NUMERIC
:
{
String
aStrConverted
;
OU
String
aStrConverted
;
if
(
DataType
::
INTEGER
!=
nType
)
{
sal_Unicode
*
pData
=
aStrConverted
.
AllocBuffer
(
aStr
.
Len
());
const
sal_Unicode
*
pStart
=
pData
;
OSL_ENSURE
((
cDecimalDelimiter
&&
nType
!=
DataType
::
INTEGER
)
||
(
!
cDecimalDelimiter
&&
nType
==
DataType
::
INTEGER
),
"FalscherTyp"
);
OUStringBuffer
aBuf
(
aStr
.
Len
());
// convert to Standard-Notation (DecimalPOINT without thousands-comma):
for
(
xub_StrLen
j
=
0
;
j
<
aStr
.
Len
();
++
j
)
{
const
sal_Unicode
cChar
=
aStr
.
GetChar
(
j
);
if
(
cDecimalDelimiter
&&
cChar
==
cDecimalDelimiter
)
*
pData
++
=
'.'
;
//aStrConverted.Append( '.' );
aBuf
.
append
(
'.'
);
else
if
(
cChar
==
'.'
)
// special case, if decimal seperator isn't '.' we have to put the string after it
continue
;
else
if
(
cThousandDelimiter
&&
cChar
==
cThousandDelimiter
)
...
...
@@ -698,10 +695,9 @@ sal_Bool OFlatTable::fetchRow(OValueRefRow& _rRow,const OSQLColumns & _rCols,sal
// leave out
}
else
*
pData
++
=
cChar
;
//aStrConverted.Append(cChar);
aBuf
.
append
(
cChar
);
}
// for (xub_StrLen j = 0; j < aStr.Len(); ++j)
aStrConverted
.
ReleaseBufferAccess
(
xub_StrLen
(
pData
-
pStart
)
);
aStrConverted
=
aBuf
.
makeStringAndClear
(
);
}
// if ( DataType::INTEGER != nType )
else
{
...
...
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