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
49b2208f
Kaydet (Commit)
49b2208f
authored
Kas 12, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sc: boost::ptr_vector->std::vector<std::unique_ptr>
Change-Id: I6f1ab588b4523fa5d2fdbe41b136fa8365499351
üst
3a03dd6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
xistyle.cxx
sc/source/filter/excel/xistyle.cxx
+8
-8
xistyle.hxx
sc/source/filter/inc/xistyle.hxx
+1
-1
No files found.
sc/source/filter/excel/xistyle.cxx
Dosyayı görüntüle @
49b2208f
...
@@ -1576,7 +1576,7 @@ void XclImpXFBuffer::ReadStyle( XclImpStream& rStrm )
...
@@ -1576,7 +1576,7 @@ void XclImpXFBuffer::ReadStyle( XclImpStream& rStrm )
{
{
XclImpStyle
*
pStyle
=
new
XclImpStyle
(
GetRoot
()
);
XclImpStyle
*
pStyle
=
new
XclImpStyle
(
GetRoot
()
);
pStyle
->
ReadStyle
(
rStrm
);
pStyle
->
ReadStyle
(
rStrm
);
(
pStyle
->
IsBuiltin
()
?
maBuiltinStyles
:
maUserStyles
).
push_back
(
pStyle
);
(
pStyle
->
IsBuiltin
()
?
maBuiltinStyles
:
maUserStyles
).
push_back
(
std
::
unique_ptr
<
XclImpStyle
>
(
pStyle
)
);
OSL_ENSURE
(
maStylesByXf
.
count
(
pStyle
->
GetXfId
()
)
==
0
,
"XclImpXFBuffer::ReadStyle - multiple styles with equal XF identifier"
);
OSL_ENSURE
(
maStylesByXf
.
count
(
pStyle
->
GetXfId
()
)
==
0
,
"XclImpXFBuffer::ReadStyle - multiple styles with equal XF identifier"
);
maStylesByXf
[
pStyle
->
GetXfId
()
]
=
pStyle
;
maStylesByXf
[
pStyle
->
GetXfId
()
]
=
pStyle
;
}
}
...
@@ -1632,13 +1632,13 @@ void XclImpXFBuffer::CreateUserStyles()
...
@@ -1632,13 +1632,13 @@ void XclImpXFBuffer::CreateUserStyles()
in the aConflictNameStyles list. */
in the aConflictNameStyles list. */
for
(
XclImpStyleList
::
iterator
itStyle
=
maBuiltinStyles
.
begin
();
itStyle
!=
maBuiltinStyles
.
end
();
++
itStyle
)
for
(
XclImpStyleList
::
iterator
itStyle
=
maBuiltinStyles
.
begin
();
itStyle
!=
maBuiltinStyles
.
end
();
++
itStyle
)
{
{
OUString
aStyleName
=
XclTools
::
GetBuiltInStyleName
(
itStyle
->
GetBuiltinId
(),
itStyle
->
GetName
(),
itStyle
->
GetLevel
()
);
OUString
aStyleName
=
XclTools
::
GetBuiltInStyleName
(
(
*
itStyle
)
->
GetBuiltinId
(),
(
*
itStyle
)
->
GetName
(),
(
*
itStyle
)
->
GetLevel
()
);
OSL_ENSURE
(
bReserveAll
||
(
aCellStyles
.
count
(
aStyleName
)
==
0
),
OSL_ENSURE
(
bReserveAll
||
(
aCellStyles
.
count
(
aStyleName
)
==
0
),
"XclImpXFBuffer::CreateUserStyles - multiple styles with equal built-in identifier"
);
"XclImpXFBuffer::CreateUserStyles - multiple styles with equal built-in identifier"
);
if
(
aCellStyles
.
count
(
aStyleName
)
>
0
)
if
(
aCellStyles
.
count
(
aStyleName
)
>
0
)
aConflictNameStyles
.
push_back
(
&
(
*
itStyle
)
);
aConflictNameStyles
.
push_back
(
itStyle
->
get
(
)
);
else
else
aCellStyles
[
aStyleName
]
=
&
(
*
itStyle
);
aCellStyles
[
aStyleName
]
=
itStyle
->
get
(
);
}
}
/* Calculate names of user defined styles. Store styles with reserved
/* Calculate names of user defined styles. Store styles with reserved
...
@@ -1646,12 +1646,12 @@ void XclImpXFBuffer::CreateUserStyles()
...
@@ -1646,12 +1646,12 @@ void XclImpXFBuffer::CreateUserStyles()
for
(
XclImpStyleList
::
iterator
itStyle
=
maUserStyles
.
begin
();
itStyle
!=
maUserStyles
.
end
();
++
itStyle
)
for
(
XclImpStyleList
::
iterator
itStyle
=
maUserStyles
.
begin
();
itStyle
!=
maUserStyles
.
end
();
++
itStyle
)
{
{
// #i1624# #i1768# ignore unnamed user styles
// #i1624# #i1768# ignore unnamed user styles
if
(
!
itStyle
->
GetName
().
isEmpty
()
)
if
(
!
(
*
itStyle
)
->
GetName
().
isEmpty
()
)
{
{
if
(
aCellStyles
.
count
(
itStyle
->
GetName
()
)
>
0
)
if
(
aCellStyles
.
count
(
(
*
itStyle
)
->
GetName
()
)
>
0
)
aConflictNameStyles
.
push_back
(
&
(
*
itStyle
)
);
aConflictNameStyles
.
push_back
(
itStyle
->
get
(
)
);
else
else
aCellStyles
[
itStyle
->
GetName
()
]
=
&
(
*
itStyle
);
aCellStyles
[
(
*
itStyle
)
->
GetName
()
]
=
itStyle
->
get
(
);
}
}
}
}
...
...
sc/source/filter/inc/xistyle.hxx
Dosyayı görüntüle @
49b2208f
...
@@ -506,7 +506,7 @@ public:
...
@@ -506,7 +506,7 @@ public:
ScStyleSheet
*
CreateStyleSheet
(
sal_uInt16
nXFIndex
);
ScStyleSheet
*
CreateStyleSheet
(
sal_uInt16
nXFIndex
);
private
:
private
:
typedef
boost
::
ptr_vector
<
XclImpStyle
>
XclImpStyleList
;
typedef
std
::
vector
<
std
::
unique_ptr
<
XclImpStyle
>
>
XclImpStyleList
;
typedef
::
std
::
map
<
sal_uInt16
,
XclImpStyle
*
>
XclImpStyleMap
;
typedef
::
std
::
map
<
sal_uInt16
,
XclImpStyle
*
>
XclImpStyleMap
;
boost
::
ptr_vector
<
XclImpXF
>
maXFList
;
/// List of contents of all XF record.
boost
::
ptr_vector
<
XclImpXF
>
maXFList
;
/// List of contents of all XF record.
...
...
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