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
a264b4c8
Kaydet (Commit)
a264b4c8
authored
Ock 15, 2018
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:useuniqueptr in VectorGraphicData
Change-Id: I73badcdf544b1c3508c9eb9e489b049a9fa12928
üst
89a21453
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
vectorgraphicdata.hxx
include/vcl/vectorgraphicdata.hxx
+2
-1
vectorgraphicdata.cxx
vcl/source/gdi/vectorgraphicdata.cxx
+1
-5
No files found.
include/vcl/vectorgraphicdata.hxx
Dosyayı görüntüle @
a264b4c8
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
#include <vcl/wmfexternal.hxx>
#include <vcl/wmfexternal.hxx>
#include <rtl/ustring.hxx>
#include <rtl/ustring.hxx>
#include <deque>
#include <deque>
#include <memory>
typedef
css
::
uno
::
Sequence
<
sal_Int8
>
VectorGraphicDataArray
;
typedef
css
::
uno
::
Sequence
<
sal_Int8
>
VectorGraphicDataArray
;
...
@@ -65,7 +66,7 @@ private:
...
@@ -65,7 +66,7 @@ private:
VectorGraphicDataType
meVectorGraphicDataType
;
VectorGraphicDataType
meVectorGraphicDataType
;
// extra:
// extra:
WmfExternal
*
mpExternalHeader
;
std
::
unique_ptr
<
WmfExternal
>
mpExternalHeader
;
// on demand creators
// on demand creators
void
ensureReplacement
();
void
ensureReplacement
();
...
...
vcl/source/gdi/vectorgraphicdata.cxx
Dosyayı görüntüle @
a264b4c8
...
@@ -129,7 +129,7 @@ void VectorGraphicData::setWmfExternalHeader(const WmfExternal& aExtHeader)
...
@@ -129,7 +129,7 @@ void VectorGraphicData::setWmfExternalHeader(const WmfExternal& aExtHeader)
{
{
if
(
!
mpExternalHeader
)
if
(
!
mpExternalHeader
)
{
{
mpExternalHeader
=
new
WmfExternal
;
mpExternalHeader
.
reset
(
new
WmfExternal
)
;
}
}
*
mpExternalHeader
=
aExtHeader
;
*
mpExternalHeader
=
aExtHeader
;
...
@@ -269,10 +269,6 @@ VectorGraphicData::VectorGraphicData(
...
@@ -269,10 +269,6 @@ VectorGraphicData::VectorGraphicData(
VectorGraphicData
::~
VectorGraphicData
()
VectorGraphicData
::~
VectorGraphicData
()
{
{
if
(
mpExternalHeader
)
{
delete
mpExternalHeader
;
};
}
}
const
basegfx
::
B2DRange
&
VectorGraphicData
::
getRange
()
const
const
basegfx
::
B2DRange
&
VectorGraphicData
::
getRange
()
const
...
...
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