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
760bba09
Kaydet (Commit)
760bba09
authored
Agu 30, 2013
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
WaE: possible loss of data
Change-Id: Ib442a7cae9f4c9bc5e32c20f1e1844a191f5b057
üst
b41ab20a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
profile.hxx
include/osl/profile.hxx
+6
-6
No files found.
include/osl/profile.hxx
Dosyayı görüntüle @
760bba09
...
@@ -87,7 +87,7 @@ namespace osl {
...
@@ -87,7 +87,7 @@ namespace osl {
sal_uInt32
nFirstId
,
const
std
::
list
<
rtl
::
OString
>&
rStrings
,
sal_uInt32
nFirstId
,
const
std
::
list
<
rtl
::
OString
>&
rStrings
,
sal_uInt32
nDefault
)
sal_uInt32
nDefault
)
{
{
in
t
nItems
=
rStrings
.
size
();
size_
t
nItems
=
rStrings
.
size
();
const
sal_Char
**
pStrings
=
new
const
sal_Char
*
[
nItems
+
1
];
const
sal_Char
**
pStrings
=
new
const
sal_Char
*
[
nItems
+
1
];
std
::
list
<
rtl
::
OString
>::
const_iterator
it
=
rStrings
.
begin
();
std
::
list
<
rtl
::
OString
>::
const_iterator
it
=
rStrings
.
begin
();
nItems
=
0
;
nItems
=
0
;
...
@@ -117,7 +117,7 @@ namespace osl {
...
@@ -117,7 +117,7 @@ namespace osl {
sal_uInt32
nFirstId
,
const
std
::
list
<
rtl
::
OString
>&
rStrings
,
sal_uInt32
nFirstId
,
const
std
::
list
<
rtl
::
OString
>&
rStrings
,
sal_uInt32
nValue
)
sal_uInt32
nValue
)
{
{
in
t
nItems
=
rStrings
.
size
();
size_
t
nItems
=
rStrings
.
size
();
const
sal_Char
**
pStrings
=
new
const
sal_Char
*
[
nItems
+
1
];
const
sal_Char
**
pStrings
=
new
const
sal_Char
*
[
nItems
+
1
];
std
::
list
<
rtl
::
OString
>::
const_iterator
it
=
rStrings
.
begin
();
std
::
list
<
rtl
::
OString
>::
const_iterator
it
=
rStrings
.
begin
();
nItems
=
0
;
nItems
=
0
;
...
@@ -152,12 +152,12 @@ namespace osl {
...
@@ -152,12 +152,12 @@ namespace osl {
std
::
list
<
rtl
::
OString
>
aEntries
;
std
::
list
<
rtl
::
OString
>
aEntries
;
// count buffer size necessary
// count buffer size necessary
in
t
n
=
osl_getProfileSectionEntries
(
profile
,
rSection
.
getStr
(),
NULL
,
0
);
size_
t
n
=
osl_getProfileSectionEntries
(
profile
,
rSection
.
getStr
(),
NULL
,
0
);
if
(
n
>
1
)
if
(
n
>
1
)
{
{
sal_Char
*
pBuf
=
new
sal_Char
[
n
+
1
];
sal_Char
*
pBuf
=
new
sal_Char
[
n
+
1
];
osl_getProfileSectionEntries
(
profile
,
rSection
.
getStr
(),
pBuf
,
n
+
1
);
osl_getProfileSectionEntries
(
profile
,
rSection
.
getStr
(),
pBuf
,
n
+
1
);
in
t
nLen
;
size_
t
nLen
;
for
(
n
=
0
;
(
nLen
=
strlen
(
pBuf
+
n
)
);
n
+=
nLen
+
1
)
for
(
n
=
0
;
(
nLen
=
strlen
(
pBuf
+
n
)
);
n
+=
nLen
+
1
)
aEntries
.
push_back
(
rtl
::
OString
(
pBuf
+
n
)
);
aEntries
.
push_back
(
rtl
::
OString
(
pBuf
+
n
)
);
delete
pBuf
;
delete
pBuf
;
...
@@ -174,12 +174,12 @@ namespace osl {
...
@@ -174,12 +174,12 @@ namespace osl {
std
::
list
<
rtl
::
OString
>
aSections
;
std
::
list
<
rtl
::
OString
>
aSections
;
// count buffer size necessary
// count buffer size necessary
in
t
n
=
osl_getProfileSections
(
profile
,
NULL
,
0
);
size_
t
n
=
osl_getProfileSections
(
profile
,
NULL
,
0
);
if
(
n
>
1
)
if
(
n
>
1
)
{
{
sal_Char
*
pBuf
=
new
sal_Char
[
n
+
1
];
sal_Char
*
pBuf
=
new
sal_Char
[
n
+
1
];
osl_getProfileSections
(
profile
,
pBuf
,
n
+
1
);
osl_getProfileSections
(
profile
,
pBuf
,
n
+
1
);
in
t
nLen
;
size_
t
nLen
;
for
(
n
=
0
;
(
nLen
=
strlen
(
pBuf
+
n
)
);
n
+=
nLen
+
1
)
for
(
n
=
0
;
(
nLen
=
strlen
(
pBuf
+
n
)
);
n
+=
nLen
+
1
)
aSections
.
push_back
(
rtl
::
OString
(
pBuf
+
n
)
);
aSections
.
push_back
(
rtl
::
OString
(
pBuf
+
n
)
);
delete
pBuf
;
delete
pBuf
;
...
...
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