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
ae23dca9
Kaydet (Commit)
ae23dca9
authored
Agu 25, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cid#1371235 Missing move assignment operator
Change-Id: If5fc8d783211a131711b5961d6b076c24dd64412
üst
529cfa4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
gradient.hxx
include/vcl/gradient.hxx
+2
-0
gradient.cxx
vcl/source/gdi/gradient.cxx
+11
-0
No files found.
include/vcl/gradient.hxx
Dosyayı görüntüle @
ae23dca9
...
...
@@ -61,6 +61,7 @@ private:
public
:
Gradient
();
Gradient
(
const
Gradient
&
rGradient
);
Gradient
(
Gradient
&&
rGradient
);
Gradient
(
GradientStyle
eStyle
,
const
Color
&
rStartColor
,
const
Color
&
rEndColor
);
...
...
@@ -95,6 +96,7 @@ public:
void
GetBoundRect
(
const
Rectangle
&
rRect
,
Rectangle
&
rBoundRect
,
Point
&
rCenter
)
const
;
Gradient
&
operator
=
(
const
Gradient
&
rGradient
);
Gradient
&
operator
=
(
Gradient
&&
rGradient
);
bool
operator
==
(
const
Gradient
&
rGradient
)
const
;
bool
operator
!=
(
const
Gradient
&
rGradient
)
const
{
return
!
(
Gradient
::
operator
==
(
rGradient
));
}
...
...
vcl/source/gdi/gradient.cxx
Dosyayı görüntüle @
ae23dca9
...
...
@@ -77,6 +77,11 @@ Gradient::Gradient( const Gradient& rGradient ) :
{
}
Gradient
::
Gradient
(
Gradient
&&
rGradient
)
:
mpImplGradient
(
std
::
move
(
rGradient
.
mpImplGradient
)
)
{
}
Gradient
::
Gradient
(
GradientStyle
eStyle
,
const
Color
&
rStartColor
,
const
Color
&
rEndColor
)
:
mpImplGradient
()
...
...
@@ -225,6 +230,12 @@ Gradient& Gradient::operator=( const Gradient& rGradient )
return
*
this
;
}
Gradient
&
Gradient
::
operator
=
(
Gradient
&&
rGradient
)
{
mpImplGradient
=
std
::
move
(
rGradient
.
mpImplGradient
);
return
*
this
;
}
bool
Gradient
::
operator
==
(
const
Gradient
&
rGradient
)
const
{
return
mpImplGradient
==
rGradient
.
mpImplGradient
;
...
...
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