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
474b4bbf
Kaydet (Commit)
474b4bbf
authored
Ock 15, 2018
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:useuniqueptr in VCLXGraphics
Change-Id: If753b871831a9954048becd0aca73769e23163ec
üst
fa286c89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
vclxgraphics.hxx
include/toolkit/awt/vclxgraphics.hxx
+2
-1
vclxgraphics.cxx
toolkit/source/awt/vclxgraphics.cxx
+4
-5
No files found.
include/toolkit/awt/vclxgraphics.hxx
Dosyayı görüntüle @
474b4bbf
...
...
@@ -32,6 +32,7 @@
#include <vcl/vclenum.hxx>
#include <vcl/vclptr.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <memory>
class
OutputDevice
;
namespace
vcl
{
class
Region
;
}
...
...
@@ -68,7 +69,7 @@ private:
Color
maLineColor
;
Color
maFillColor
;
RasterOp
meRasterOp
;
vcl
::
Region
*
mpClipRegion
;
std
::
unique_ptr
<
vcl
::
Region
>
mpClipRegion
;
void
initAttrs
();
...
...
toolkit/source/awt/vclxgraphics.cxx
Dosyayı görüntüle @
474b4bbf
...
...
@@ -79,7 +79,7 @@ VCLXGraphics::~VCLXGraphics()
}
}
delete
mpClipRegion
;
mpClipRegion
.
reset
()
;
SolarMutexGuard
g
;
mpOutputDevice
.
reset
();
...
...
@@ -227,11 +227,10 @@ void VCLXGraphics::setClipRegion( const uno::Reference< awt::XRegion >& rxRegion
{
SolarMutexGuard
aGuard
;
delete
mpClipRegion
;
if
(
rxRegion
.
is
()
)
mpClipRegion
=
new
vcl
::
Region
(
VCLUnoHelper
::
GetRegion
(
rxRegion
)
);
mpClipRegion
.
reset
(
new
vcl
::
Region
(
VCLUnoHelper
::
GetRegion
(
rxRegion
)
)
);
else
mpClipRegion
=
nullptr
;
mpClipRegion
.
reset
()
;
}
void
VCLXGraphics
::
intersectClipRegion
(
const
uno
::
Reference
<
awt
::
XRegion
>&
rxRegion
)
...
...
@@ -242,7 +241,7 @@ void VCLXGraphics::intersectClipRegion( const uno::Reference< awt::XRegion >& rx
{
vcl
::
Region
aRegion
(
VCLUnoHelper
::
GetRegion
(
rxRegion
)
);
if
(
!
mpClipRegion
)
mpClipRegion
=
new
vcl
::
Region
(
aRegion
);
mpClipRegion
.
reset
(
new
vcl
::
Region
(
aRegion
)
);
else
mpClipRegion
->
Intersect
(
aRegion
);
}
...
...
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