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
5f5ccfc0
Kaydet (Commit)
5f5ccfc0
authored
Agu 31, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: Id852428e7b7cde6eec6eeb9a2a9004d1f2e789b6
üst
7bff36d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
broadcaster.cxx
configmgr/source/broadcaster.cxx
+1
-1
data.cxx
configmgr/source/data.cxx
+5
-5
No files found.
configmgr/source/broadcaster.cxx
Dosyayı görüntüle @
5f5ccfc0
...
@@ -47,7 +47,7 @@ namespace {
...
@@ -47,7 +47,7 @@ namespace {
void
appendMessage
(
void
appendMessage
(
OUStringBuffer
&
buffer
,
css
::
uno
::
Exception
const
&
exception
)
OUStringBuffer
&
buffer
,
css
::
uno
::
Exception
const
&
exception
)
{
{
buffer
.
append
Ascii
(
"; "
);
buffer
.
append
(
"; "
);
buffer
.
append
(
exception
.
Message
);
buffer
.
append
(
exception
.
Message
);
}
}
...
...
configmgr/source/data.cxx
Dosyayı görüntüle @
5f5ccfc0
...
@@ -87,25 +87,25 @@ OUString Data::createSegment(
...
@@ -87,25 +87,25 @@ OUString Data::createSegment(
}
}
OUStringBuffer
buf
(
templateName
);
OUStringBuffer
buf
(
templateName
);
//TODO: verify template name contains no bad chars?
//TODO: verify template name contains no bad chars?
buf
.
append
Ascii
(
"['"
);
buf
.
append
(
"['"
);
for
(
sal_Int32
i
=
0
;
i
<
name
.
getLength
();
++
i
)
{
for
(
sal_Int32
i
=
0
;
i
<
name
.
getLength
();
++
i
)
{
sal_Unicode
c
=
name
[
i
];
sal_Unicode
c
=
name
[
i
];
switch
(
c
)
{
switch
(
c
)
{
case
'&'
:
case
'&'
:
buf
.
append
Ascii
(
"&"
);
buf
.
append
(
"&"
);
break
;
break
;
case
'"'
:
case
'"'
:
buf
.
append
Ascii
(
"""
);
buf
.
append
(
"""
);
break
;
break
;
case
'\''
:
case
'\''
:
buf
.
append
Ascii
(
"'"
);
buf
.
append
(
"'"
);
break
;
break
;
default
:
default
:
buf
.
append
(
c
);
buf
.
append
(
c
);
break
;
break
;
}
}
}
}
buf
.
append
Ascii
(
"']"
);
buf
.
append
(
"']"
);
return
buf
.
makeStringAndClear
();
return
buf
.
makeStringAndClear
();
}
}
...
...
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