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
89a21453
Kaydet (Commit)
89a21453
authored
Ock 15, 2018
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:useuniqueptr in Octree
Change-Id: I26824107dbcf5d313409e301059a37a59b59a05b
üst
9fc4f39c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
octree.hxx
vcl/inc/octree.hxx
+1
-1
octree.cxx
vcl/source/gdi/octree.cxx
+2
-2
No files found.
vcl/inc/octree.hxx
Dosyayı görüntüle @
89a21453
...
...
@@ -60,7 +60,7 @@ private:
NODE
*
pTree
;
NODE
*
pReduce
[
OCTREE_BITS
+
1
];
BitmapColor
const
*
pColor
;
ImpNodeCache
*
pNodeCache
;
std
::
unique_ptr
<
ImpNodeCache
>
pNodeCache
;
const
BitmapReadAccess
*
pAcc
;
sal_uInt16
nPalIndex
;
...
...
vcl/source/gdi/octree.cxx
Dosyayı görüntüle @
89a21453
...
...
@@ -61,7 +61,7 @@ Octree::Octree(const BitmapReadAccess& rReadAcc, sal_uLong nColors)
,
pAcc
(
&
rReadAcc
)
,
nPalIndex
(
0
)
{
pNodeCache
=
new
ImpNodeCache
(
nColors
);
pNodeCache
.
reset
(
new
ImpNodeCache
(
nColors
)
);
memset
(
pReduce
,
0
,
(
OCTREE_BITS
+
1
)
*
sizeof
(
NODE
*
)
);
if
(
!!*
pAcc
)
...
...
@@ -109,7 +109,7 @@ Octree::Octree(const BitmapReadAccess& rReadAcc, sal_uLong nColors)
Octree
::~
Octree
()
{
ImplDeleteOctree
(
&
pTree
);
delete
pNodeCache
;
pNodeCache
.
reset
()
;
}
void
Octree
::
ImplDeleteOctree
(
NODE
**
ppNode
)
...
...
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