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
f40aba6b
Kaydet (Commit)
f40aba6b
authored
Ock 27, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1371303 Missing move assignment operator
Change-Id: I0dec3e192f3da895398a8b011c0e7275aab59d73
üst
15a2a39c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
impgraph.hxx
vcl/inc/impgraph.hxx
+2
-0
impgraph.cxx
vcl/source/gdi/impgraph.cxx
+41
-0
No files found.
vcl/inc/impgraph.hxx
Dosyayı görüntüle @
f40aba6b
...
...
@@ -55,6 +55,7 @@ private:
ImpGraphic
();
ImpGraphic
(
const
ImpGraphic
&
rImpGraphic
);
ImpGraphic
(
ImpGraphic
&&
rImpGraphic
);
ImpGraphic
(
const
Bitmap
&
rBmp
);
ImpGraphic
(
const
BitmapEx
&
rBmpEx
);
ImpGraphic
(
const
SvgDataPtr
&
rSvgDataPtr
);
...
...
@@ -65,6 +66,7 @@ public:
private
:
ImpGraphic
&
operator
=
(
const
ImpGraphic
&
rImpGraphic
);
ImpGraphic
&
operator
=
(
ImpGraphic
&&
rImpGraphic
);
bool
operator
==
(
const
ImpGraphic
&
rImpGraphic
)
const
;
bool
operator
!=
(
const
ImpGraphic
&
rImpGraphic
)
const
{
return
!
(
*
this
==
rImpGraphic
);
}
...
...
vcl/source/gdi/impgraph.cxx
Dosyayı görüntüle @
f40aba6b
...
...
@@ -128,6 +128,25 @@ ImpGraphic::ImpGraphic(const ImpGraphic& rImpGraphic)
}
}
ImpGraphic
::
ImpGraphic
(
ImpGraphic
&&
rImpGraphic
)
:
maMetaFile
(
std
::
move
(
rImpGraphic
.
maMetaFile
))
,
maEx
(
std
::
move
(
rImpGraphic
.
maEx
))
,
maSwapInfo
(
std
::
move
(
rImpGraphic
.
maSwapInfo
))
,
mpAnimation
(
std
::
move
(
rImpGraphic
.
mpAnimation
))
,
mpContext
(
std
::
move
(
rImpGraphic
.
mpContext
))
,
mpSwapFile
(
std
::
move
(
rImpGraphic
.
mpSwapFile
))
,
mpGfxLink
(
std
::
move
(
rImpGraphic
.
mpGfxLink
))
,
meType
(
rImpGraphic
.
meType
)
,
mnSizeBytes
(
rImpGraphic
.
mnSizeBytes
)
,
mbSwapOut
(
rImpGraphic
.
mbSwapOut
)
,
mbDummyContext
(
rImpGraphic
.
mbDummyContext
)
,
maSvgData
(
std
::
move
(
rImpGraphic
.
maSvgData
))
,
maPdfData
(
std
::
move
(
rImpGraphic
.
maPdfData
))
{
rImpGraphic
.
ImplClear
();
rImpGraphic
.
mbDummyContext
=
false
;
}
ImpGraphic
::
ImpGraphic
(
const
Bitmap
&
rBitmap
)
:
maEx
(
rBitmap
),
meType
(
!
rBitmap
.
IsEmpty
()
?
GraphicType
::
Bitmap
:
GraphicType
::
NONE
),
...
...
@@ -217,6 +236,28 @@ ImpGraphic& ImpGraphic::operator=( const ImpGraphic& rImpGraphic )
return
*
this
;
}
ImpGraphic
&
ImpGraphic
::
operator
=
(
ImpGraphic
&&
rImpGraphic
)
{
maMetaFile
=
std
::
move
(
rImpGraphic
.
maMetaFile
);
meType
=
rImpGraphic
.
meType
;
mnSizeBytes
=
rImpGraphic
.
mnSizeBytes
;
maSwapInfo
=
std
::
move
(
rImpGraphic
.
maSwapInfo
);
mpContext
=
std
::
move
(
rImpGraphic
.
mpContext
);
mbDummyContext
=
rImpGraphic
.
mbDummyContext
;
mpAnimation
=
std
::
move
(
rImpGraphic
.
mpAnimation
);
maEx
=
std
::
move
(
rImpGraphic
.
maEx
);
mbSwapOut
=
rImpGraphic
.
mbSwapOut
;
mpSwapFile
=
std
::
move
(
rImpGraphic
.
mpSwapFile
);
mpGfxLink
=
std
::
move
(
rImpGraphic
.
mpGfxLink
);
maSvgData
=
std
::
move
(
rImpGraphic
.
maSvgData
);
maPdfData
=
std
::
move
(
rImpGraphic
.
maPdfData
);
rImpGraphic
.
ImplClear
();
rImpGraphic
.
mbDummyContext
=
false
;
return
*
this
;
}
bool
ImpGraphic
::
operator
==
(
const
ImpGraphic
&
rImpGraphic
)
const
{
bool
bRet
=
false
;
...
...
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