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
aa1918ef
Kaydet (Commit)
aa1918ef
authored
Agu 02, 2015
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix some conversion warnings, reduce scope
Change-Id: I9f36b29e329dde3b841f963d9dde3480e80da3f5
üst
9869ab09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
ilstbox.cxx
vcl/source/control/ilstbox.cxx
+15
-15
longcurr.cxx
vcl/source/control/longcurr.cxx
+2
-2
No files found.
vcl/source/control/ilstbox.cxx
Dosyayı görüntüle @
aa1918ef
...
...
@@ -121,17 +121,18 @@ sal_Int32 ImplEntryList::InsertEntry( sal_Int32 nPos, ImplEntryType* pNewEntry,
mnImages
++
;
sal_Int32
insPos
=
0
;
const
sal_Int32
nEntriesSize
=
static_cast
<
sal_Int32
>
(
maEntries
.
size
());
if
(
!
bSort
||
maEntries
.
empty
())
{
if
(
0
<=
nPos
&&
static_cast
<
size_t
>
(
nPos
)
<
maEntries
.
size
()
)
if
(
0
<=
nPos
&&
nPos
<
nEntriesSize
)
{
insPos
=
nPos
;
maEntries
.
insert
(
maEntries
.
begin
()
+
nPos
,
pNewEntry
);
}
else
{
insPos
=
maEntries
.
size
()
;
insPos
=
nEntriesSize
;
maEntries
.
push_back
(
pNewEntry
);
}
}
...
...
@@ -140,11 +141,8 @@ sal_Int32 ImplEntryList::InsertEntry( sal_Int32 nPos, ImplEntryType* pNewEntry,
const
comphelper
::
string
::
NaturalStringSorter
&
rSorter
=
theSorter
::
get
();
const
OUString
&
rStr
=
pNewEntry
->
maStr
;
sal_uLong
nLow
,
nHigh
,
nMid
;
nHigh
=
maEntries
.
size
();
ImplEntryType
*
pTemp
=
GetEntry
(
(
sal_Int32
)(
nHigh
-
1
)
);
ImplEntryType
*
pTemp
=
GetEntry
(
nEntriesSize
-
1
);
try
{
...
...
@@ -153,13 +151,12 @@ sal_Int32 ImplEntryList::InsertEntry( sal_Int32 nPos, ImplEntryType* pNewEntry,
// fast insert for sorted data
if
(
nComp
>=
0
)
{
insPos
=
maEntries
.
size
()
;
insPos
=
nEntriesSize
;
maEntries
.
push_back
(
pNewEntry
);
}
else
{
nLow
=
mnMRUCount
;
pTemp
=
GetEntry
(
(
sal_Int32
)
nLow
);
pTemp
=
GetEntry
(
mnMRUCount
);
nComp
=
rSorter
.
compare
(
rStr
,
pTemp
->
maStr
);
if
(
nComp
<=
0
)
...
...
@@ -169,11 +166,14 @@ sal_Int32 ImplEntryList::InsertEntry( sal_Int32 nPos, ImplEntryType* pNewEntry,
}
else
{
sal_uLong
nLow
=
mnMRUCount
;
sal_uLong
nHigh
=
maEntries
.
size
()
-
1
;
sal_Int32
nMid
;
// binary search
nHigh
--
;
do
{
nMid
=
(
nLow
+
nHigh
)
/
2
;
nMid
=
static_cast
<
sal_Int32
>
((
nLow
+
nHigh
)
/
2
)
;
pTemp
=
GetEntry
(
nMid
);
nComp
=
rSorter
.
compare
(
rStr
,
pTemp
->
maStr
);
...
...
@@ -228,7 +228,7 @@ void ImplEntryList::RemoveEntry( sal_Int32 nPos )
sal_Int32
ImplEntryList
::
FindEntry
(
const
OUString
&
rString
,
bool
bSearchMRUArea
)
const
{
sal_Int32
nEntries
=
maEntries
.
size
(
);
const
sal_Int32
nEntries
=
static_cast
<
sal_Int32
>
(
maEntries
.
size
()
);
for
(
sal_Int32
n
=
bSearchMRUArea
?
0
:
GetMRUCount
();
n
<
nEntries
;
n
++
)
{
OUString
aComp
(
vcl
::
I18nHelper
::
filterFormattingChars
(
maEntries
[
n
].
maStr
)
);
...
...
@@ -1910,11 +1910,11 @@ sal_uInt16 ImplListBoxWindow::GetDisplayLineCount() const
{
// FIXME: ListBoxEntryFlags::MultiLine
sal_Int32
nCount
=
mpEntryList
->
GetEntryCount
()
;
const
sal_Int32
nCount
=
mpEntryList
->
GetEntryCount
()
-
mnTop
;
long
nHeight
=
GetOutputSizePixel
().
Height
();
// - mnMaxHeight + mnBorder;
sal_uInt16
nEntries
=
static_cast
<
sal_uInt16
>
(
(
nHeight
+
mnMaxHeight
-
1
)
/
mnMaxHeight
);
if
(
nEntries
>
nCount
-
mnTop
)
nEntries
=
nCount
-
mnTop
;
if
(
nEntries
>
nCount
)
nEntries
=
static_cast
<
sal_uInt16
>
(
nCount
)
;
return
nEntries
;
}
...
...
vcl/source/control/longcurr.cxx
Dosyayı görüntüle @
aa1918ef
...
...
@@ -579,8 +579,8 @@ void LongCurrencyBox::ReformatAll()
{
OUString
aStr
;
SetUpdateMode
(
false
);
sal_uInt16
nEntryCount
=
GetEntryCount
();
for
(
sal_
uInt16
i
=
0
;
i
<
nEntryCount
;
i
++
)
const
sal_Int32
nEntryCount
=
GetEntryCount
();
for
(
sal_
Int32
i
=
0
;
i
<
nEntryCount
;
++
i
)
{
ImplLongCurrencyReformat
(
GetEntry
(
i
),
mnMin
,
mnMax
,
GetDecimalDigits
(),
GetLocaleDataWrapper
(),
...
...
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