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
bd2455d3
Kaydet (Commit)
bd2455d3
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: I4fa56a36b68db8c771a5d634be3655d1f9fdda70
üst
2dcec2f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
xicontent.cxx
sc/source/filter/excel/xicontent.cxx
+3
-3
xicontent.hxx
sc/source/filter/inc/xicontent.hxx
+3
-1
No files found.
sc/source/filter/excel/xicontent.cxx
Dosyayı görüntüle @
bd2455d3
...
@@ -707,20 +707,20 @@ void XclImpCondFormatManager::ReadCondfmt( XclImpStream& rStrm )
...
@@ -707,20 +707,20 @@ void XclImpCondFormatManager::ReadCondfmt( XclImpStream& rStrm )
{
{
XclImpCondFormat
*
pFmt
=
new
XclImpCondFormat
(
GetRoot
(),
maCondFmtList
.
size
()
);
XclImpCondFormat
*
pFmt
=
new
XclImpCondFormat
(
GetRoot
(),
maCondFmtList
.
size
()
);
pFmt
->
ReadCondfmt
(
rStrm
);
pFmt
->
ReadCondfmt
(
rStrm
);
maCondFmtList
.
push_back
(
pFmt
);
maCondFmtList
.
push_back
(
std
::
unique_ptr
<
XclImpCondFormat
>
(
pFmt
)
);
}
}
void
XclImpCondFormatManager
::
ReadCF
(
XclImpStream
&
rStrm
)
void
XclImpCondFormatManager
::
ReadCF
(
XclImpStream
&
rStrm
)
{
{
OSL_ENSURE
(
!
maCondFmtList
.
empty
(),
"XclImpCondFormatManager::ReadCF - CF without leading CONDFMT"
);
OSL_ENSURE
(
!
maCondFmtList
.
empty
(),
"XclImpCondFormatManager::ReadCF - CF without leading CONDFMT"
);
if
(
!
maCondFmtList
.
empty
()
)
if
(
!
maCondFmtList
.
empty
()
)
maCondFmtList
.
back
()
.
ReadCF
(
rStrm
);
maCondFmtList
.
back
()
->
ReadCF
(
rStrm
);
}
}
void
XclImpCondFormatManager
::
Apply
()
void
XclImpCondFormatManager
::
Apply
()
{
{
for
(
XclImpCondFmtList
::
iterator
itFmt
=
maCondFmtList
.
begin
();
itFmt
!=
maCondFmtList
.
end
();
++
itFmt
)
for
(
XclImpCondFmtList
::
iterator
itFmt
=
maCondFmtList
.
begin
();
itFmt
!=
maCondFmtList
.
end
();
++
itFmt
)
itFmt
->
Apply
();
(
*
itFmt
)
->
Apply
();
maCondFmtList
.
clear
();
maCondFmtList
.
clear
();
}
}
...
...
sc/source/filter/inc/xicontent.hxx
Dosyayı görüntüle @
bd2455d3
...
@@ -29,6 +29,8 @@
...
@@ -29,6 +29,8 @@
#include "tabprotection.hxx"
#include "tabprotection.hxx"
#include <map>
#include <map>
#include <vector>
#include <memory>
#include <boost/ptr_container/ptr_vector.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#include <boost/noncopyable.hpp>
#include <boost/noncopyable.hpp>
...
@@ -157,7 +159,7 @@ public:
...
@@ -157,7 +159,7 @@ public:
void
Apply
();
void
Apply
();
private
:
private
:
typedef
boost
::
ptr_vector
<
XclImpCondFormat
>
XclImpCondFmtList
;
typedef
std
::
vector
<
std
::
unique_ptr
<
XclImpCondFormat
>
>
XclImpCondFmtList
;
XclImpCondFmtList
maCondFmtList
;
/// List with all conditional formatting.
XclImpCondFmtList
maCondFmtList
;
/// List with all conditional formatting.
};
};
...
...
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