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
c606f4bf
Kaydet (Commit)
c606f4bf
authored
Eyl 25, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1371240 Missing move assignment operator
Change-Id: Icf7a55fb7c37b5642913b010a54a7690c0593474
üst
958f7a7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
OutlinerIterator.hxx
sd/inc/OutlinerIterator.hxx
+3
-0
OutlinerIterator.cxx
sd/source/ui/view/OutlinerIterator.cxx
+11
-0
No files found.
sd/inc/OutlinerIterator.hxx
Dosyayı görüntüle @
c606f4bf
...
@@ -81,6 +81,7 @@ public:
...
@@ -81,6 +81,7 @@ public:
implementation object.
implementation object.
*/
*/
Iterator
(
const
Iterator
&
rIterator
);
Iterator
(
const
Iterator
&
rIterator
);
Iterator
(
Iterator
&&
rIterator
);
/** Create a new iterator with the implementation object being the
/** Create a new iterator with the implementation object being the
provided one.
provided one.
...
@@ -97,6 +98,8 @@ public:
...
@@ -97,6 +98,8 @@ public:
The iterator which to assign from.
The iterator which to assign from.
*/
*/
Iterator
&
operator
=
(
const
Iterator
&
rIterator
);
Iterator
&
operator
=
(
const
Iterator
&
rIterator
);
Iterator
&
operator
=
(
Iterator
&&
rIterator
);
/** Return the current position of the iterator.
/** Return the current position of the iterator.
@return
@return
Returns a reference to the current position. Therefore this
Returns a reference to the current position. Therefore this
...
...
sd/source/ui/view/OutlinerIterator.cxx
Dosyayı görüntüle @
c606f4bf
...
@@ -73,6 +73,11 @@ Iterator::Iterator (const Iterator& rIterator)
...
@@ -73,6 +73,11 @@ Iterator::Iterator (const Iterator& rIterator)
{
{
}
}
Iterator
::
Iterator
(
Iterator
&&
rIterator
)
:
mxIterator
(
std
::
move
(
rIterator
.
mxIterator
))
{
}
Iterator
::
Iterator
(
IteratorImplBase
*
pObject
)
Iterator
::
Iterator
(
IteratorImplBase
*
pObject
)
:
mxIterator
(
pObject
)
:
mxIterator
(
pObject
)
{
{
...
@@ -94,6 +99,12 @@ Iterator& Iterator::operator= (const Iterator& rIterator)
...
@@ -94,6 +99,12 @@ Iterator& Iterator::operator= (const Iterator& rIterator)
return
*
this
;
return
*
this
;
}
}
Iterator
&
Iterator
::
operator
=
(
Iterator
&&
rIterator
)
{
mxIterator
=
std
::
move
(
rIterator
.
mxIterator
);
return
*
this
;
}
const
IteratorPosition
&
Iterator
::
operator
*
()
const
const
IteratorPosition
&
Iterator
::
operator
*
()
const
{
{
DBG_ASSERT
(
mxIterator
,
"::sd::outliner::Iterator::operator* : missing implementation object"
);
DBG_ASSERT
(
mxIterator
,
"::sd::outliner::Iterator::operator* : missing implementation object"
);
...
...
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