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
55149144
Kaydet (Commit)
55149144
authored
Eki 09, 2012
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SfxErrorHandler::CreateString: remove pointless loops
Change-Id: I585add18ea917249df252827e0eee944e59ce410
üst
24e66143
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
32 deletions
+10
-32
zformat.cxx
svl/source/numbers/zformat.cxx
+1
-1
ehdl.cxx
svtools/source/misc/ehdl.cxx
+9
-31
No files found.
svl/source/numbers/zformat.cxx
Dosyayı görüntüle @
55149144
...
...
@@ -4721,7 +4721,7 @@ OUString SvNumberformat::GetMappedFormatstring(
{
// append empty subformats
aStr
.
append
(
';'
);
}
return
aStr
.
getSt
r
();
return
aStr
.
makeStringAndClea
r
();
}
String
SvNumberformat
::
ImpGetNatNumString
(
const
SvNumberNatNum
&
rNum
,
...
...
svtools/source/misc/ehdl.cxx
Dosyayı görüntüle @
55149144
...
...
@@ -192,13 +192,7 @@ sal_Bool SfxErrorHandler::CreateString(
{
if
(
GetMessageString
(
nErrCode
,
rStr
,
nFlags
))
{
for
(
xub_StrLen
i
=
0
;
i
<
rStr
.
getLength
();)
{
if
(
rStr
.
indexOf
(
OUString
(
"$(ARG1)"
),
i
)
==
-
1
)
break
;
rStr
=
rStr
.
replaceAll
(
"$(ARG1)"
,
pMsgInfo
->
GetMessageArg
(),
i
);
i
=
i
+
pMsgInfo
->
GetMessageArg
().
getLength
();
}
rStr
=
rStr
.
replaceAll
(
"$(ARG1)"
,
pMsgInfo
->
GetMessageArg
());
return
sal_True
;
}
}
...
...
@@ -206,35 +200,19 @@ sal_Bool SfxErrorHandler::CreateString(
{
StringErrorInfo
*
pStringInfo
=
PTR_CAST
(
StringErrorInfo
,
pErr
);
if
(
pStringInfo
)
for
(
xub_StrLen
i
=
0
;
i
<
rStr
.
getLength
();)
{
if
(
rStr
.
indexOf
(
"$(ARG1)"
,
i
)
==
-
1
)
break
;
rStr
=
rStr
.
replaceAll
(
rtl
::
OUString
(
"$(ARG1)"
),
pStringInfo
->
GetErrorString
(),
i
);
i
=
i
+
pStringInfo
->
GetErrorString
().
getLength
();
}
{
rStr
=
rStr
.
replaceAll
(
rtl
::
OUString
(
"$(ARG1)"
),
pStringInfo
->
GetErrorString
());
}
else
{
TwoStringErrorInfo
*
pTwoStringInfo
=
PTR_CAST
(
TwoStringErrorInfo
,
pErr
);
if
(
pTwoStringInfo
)
for
(
sal_uInt16
i
=
0
;
i
<
rStr
.
getLength
();)
{
sal_uInt16
nArg1Pos
=
rStr
.
indexOf
(
rtl
::
OUString
(
"$(ARG1)"
),
i
);
sal_uInt16
nArg2Pos
=
rStr
.
indexOf
(
rtl
::
OUString
(
"$(ARG2)"
),
i
);
if
(
nArg1Pos
<
nArg2Pos
)
{
rStr
=
rStr
.
replaceAt
(
nArg1Pos
,
7
,
pTwoStringInfo
->
GetArg1
());
i
=
nArg1Pos
+
pTwoStringInfo
->
GetArg1
().
getLength
();
}
else
if
(
nArg2Pos
<
nArg1Pos
)
{
rStr
=
rStr
.
replaceAt
(
nArg2Pos
,
7
,
pTwoStringInfo
->
GetArg2
());
i
=
nArg2Pos
+
pTwoStringInfo
->
GetArg2
().
getLength
();
}
else
break
;
}
{
rStr
=
rStr
.
replaceAll
(
"$(ARG1)"
,
pTwoStringInfo
->
GetArg1
());
rStr
=
rStr
.
replaceAll
(
"$(ARG2)"
,
pTwoStringInfo
->
GetArg2
());
}
}
return
sal_True
;
}
...
...
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