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
f24323d4
Kaydet (Commit)
f24323d4
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
Change-Id: I66c59a40a551d844da85fc39367ec2d79fcf0d18
üst
77470788
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
areasave.hxx
sc/source/ui/inc/areasave.hxx
+3
-4
areasave.cxx
sc/source/ui/undo/areasave.cxx
+2
-5
No files found.
sc/source/ui/inc/areasave.hxx
Dosyayı görüntüle @
f24323d4
...
...
@@ -22,7 +22,7 @@
#include "address.hxx"
#include <
boost/ptr_container/ptr_vector.hpp
>
#include <
vector
>
class
ScDocument
;
class
ScAreaLink
;
...
...
@@ -40,7 +40,6 @@ private:
public
:
ScAreaLinkSaver
(
const
ScAreaLink
&
rSource
);
ScAreaLinkSaver
(
const
ScAreaLinkSaver
&
rCopy
);
~
ScAreaLinkSaver
();
bool
IsEqual
(
const
ScAreaLink
&
rCompare
)
const
;
bool
IsEqualSource
(
const
ScAreaLink
&
rCompare
)
const
;
...
...
@@ -51,7 +50,7 @@ public:
class
ScAreaLinkSaveCollection
{
typedef
::
boost
::
ptr_
vector
<
ScAreaLinkSaver
>
DataType
;
typedef
::
std
::
vector
<
ScAreaLinkSaver
>
DataType
;
DataType
maData
;
public
:
ScAreaLinkSaveCollection
();
...
...
@@ -67,7 +66,7 @@ public:
ScAreaLinkSaver
&
operator
[](
size_t
nIndex
);
const
ScAreaLinkSaver
&
operator
[](
size_t
nIndex
)
const
;
size_t
size
()
const
;
void
push_back
(
ScAreaLinkSaver
*
p
);
void
push_back
(
const
ScAreaLinkSaver
&
);
};
#endif
...
...
sc/source/ui/undo/areasave.cxx
Dosyayı görüntüle @
f24323d4
...
...
@@ -44,8 +44,6 @@ ScAreaLinkSaver::ScAreaLinkSaver( const ScAreaLinkSaver& rCopy ) :
{
}
ScAreaLinkSaver
::~
ScAreaLinkSaver
()
{}
bool
ScAreaLinkSaver
::
IsEqualSource
(
const
ScAreaLink
&
rCompare
)
const
{
return
(
aFileName
.
equals
(
rCompare
.
GetFile
())
&&
...
...
@@ -178,8 +176,7 @@ ScAreaLinkSaveCollection* ScAreaLinkSaveCollection::CreateFromDoc( const ScDocum
if
(
!
pColl
)
pColl
=
new
ScAreaLinkSaveCollection
;
ScAreaLinkSaver
*
pSaver
=
new
ScAreaLinkSaver
(
*
static_cast
<
ScAreaLink
*>
(
pBase
));
pColl
->
push_back
(
pSaver
);
pColl
->
push_back
(
ScAreaLinkSaver
(
*
static_cast
<
ScAreaLink
*>
(
pBase
)
)
);
}
}
}
...
...
@@ -202,7 +199,7 @@ size_t ScAreaLinkSaveCollection::size() const
return
maData
.
size
();
}
void
ScAreaLinkSaveCollection
::
push_back
(
ScAreaLinkSaver
*
p
)
void
ScAreaLinkSaveCollection
::
push_back
(
const
ScAreaLinkSaver
&
p
)
{
maData
.
push_back
(
p
);
}
...
...
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