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
e10f7dd3
Kaydet (Commit)
e10f7dd3
authored
Ock 12, 2016
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sc: replace boost::ptr_map with std::map<std::unique_ptr>
Change-Id: I2fbce996afcd7d1dabd7c540272d8877d034cf14
üst
9ec53cce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
docfuncutil.cxx
sc/source/ui/docshell/docfuncutil.cxx
+4
-2
undobase.hxx
sc/source/ui/inc/undobase.hxx
+3
-2
No files found.
sc/source/ui/docshell/docfuncutil.cxx
Dosyayı görüntüle @
e10f7dd3
...
...
@@ -24,6 +24,8 @@
#include <global.hxx>
#include <undoblk.hxx>
#include <o3tl/make_unique.hxx>
#include <memory>
#include <utility>
...
...
@@ -99,11 +101,11 @@ std::unique_ptr<ScSimpleUndo::DataSpansType> DocFuncUtil::getNonEmptyCellSpans(
SCROW
nRow1
=
rRange
.
aStart
.
Row
(),
nRow2
=
rRange
.
aEnd
.
Row
();
std
::
pair
<
ScSimpleUndo
::
DataSpansType
::
iterator
,
bool
>
r
=
pDataSpans
->
insert
(
nTab
,
new
sc
::
ColumnSpanSet
(
false
));
pDataSpans
->
insert
(
std
::
make_pair
(
nTab
,
o3tl
::
make_unique
<
sc
::
ColumnSpanSet
>
(
false
)
));
if
(
r
.
second
)
{
sc
::
ColumnSpanSet
*
pSet
=
r
.
first
->
second
;
sc
::
ColumnSpanSet
*
const
pSet
=
r
.
first
->
second
.
get
()
;
pSet
->
scan
(
rDoc
,
nTab
,
nCol1
,
nRow1
,
nCol2
,
nRow2
,
true
);
}
}
...
...
sc/source/ui/inc/undobase.hxx
Dosyayı görüntüle @
e10f7dd3
...
...
@@ -26,7 +26,8 @@
#include "docsh.hxx"
#include <columnspanset.hxx>
#include <boost/ptr_container/ptr_map.hpp>
#include <memory>
#include <map>
class
ScDocument
;
class
ScDocShell
;
...
...
@@ -39,7 +40,7 @@ class ScSimpleUndo: public SfxUndoAction
ScSimpleUndo
(
const
ScSimpleUndo
&
)
=
delete
;
public
:
typedef
boost
::
ptr_map
<
SCTAB
,
sc
::
ColumnSpanSet
>
DataSpansType
;
typedef
std
::
map
<
SCTAB
,
std
::
unique_ptr
<
sc
::
ColumnSpanSet
>
>
DataSpansType
;
ScSimpleUndo
(
ScDocShell
*
pDocSh
);
virtual
~
ScSimpleUndo
();
...
...
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