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
99674f75
Kaydet (Commit)
99674f75
authored
Ock 30, 2015
tarafından
László Németh
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#88810 cleanup (append() for number to string conv.)
Change-Id: I800c8c4a2cb55a8d9f46a5c5cf1f79dd44051dfe
üst
aac8aa2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
17 deletions
+5
-17
address.cxx
sc/source/core/tool/address.cxx
+5
-17
No files found.
sc/source/core/tool/address.cxx
Dosyayı görüntüle @
99674f75
...
...
@@ -1710,21 +1710,11 @@ template <typename T > static inline void lcl_a1_append_c ( T &rString, int nCol
lcl_ScColToAlpha
(
rString
,
sal
::
static_int_cast
<
SCCOL
>
(
nCol
)
);
}
static
inline
void
lcl_string_append_number
(
OUStringBuffer
&
rString
,
int
nNumber
)
{
rString
.
append
(
OUString
::
number
(
nNumber
));
}
static
inline
void
lcl_string_append_number
(
OStringBuffer
&
rString
,
int
nNumber
)
{
rString
.
append
(
OString
::
number
(
nNumber
));
}
template
<
typename
T
>
static
inline
void
lcl_a1_append_r
(
T
&
rString
,
int
nRow
,
bool
bIsAbs
)
{
if
(
bIsAbs
)
rString
.
append
(
"$"
);
lcl_string_append_number
(
rString
,
nRow
+
1
);
rString
.
append
(
nRow
+
1
);
}
template
<
typename
T
>
static
inline
void
lcl_r1c1_append_c
(
T
&
rString
,
int
nCol
,
bool
bIsAbs
,
...
...
@@ -1733,14 +1723,13 @@ template <typename T > static inline void lcl_r1c1_append_c ( T &rString, int nC
rString
.
append
(
"C"
);
if
(
bIsAbs
)
{
lcl_string_append_number
(
rString
,
nCol
+
1
);
rString
.
append
(
nCol
+
1
);
}
else
{
nCol
-=
rDetails
.
nCol
;
if
(
nCol
!=
0
)
{
lcl_string_append_number
(
rString
.
append
(
"["
),
nCol
);
rString
.
append
(
"]"
);
rString
.
append
(
"["
).
append
(
nCol
).
append
(
"]"
);
}
}
}
...
...
@@ -1751,14 +1740,13 @@ template <typename T > static inline void lcl_r1c1_append_r ( T &rString, int nR
rString
.
append
(
"R"
);
if
(
bIsAbs
)
{
lcl_string_append_number
(
rString
,
nRow
+
1
);
rString
.
append
(
nRow
+
1
);
}
else
{
nRow
-=
rDetails
.
nRow
;
if
(
nRow
!=
0
)
{
lcl_string_append_number
(
rString
.
append
(
"["
),
nRow
);
rString
.
append
(
"]"
);
rString
.
append
(
"["
).
append
(
nRow
).
append
(
"]"
);
}
}
}
...
...
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