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
7afc5ab5
Kaydet (Commit)
7afc5ab5
authored
Eyl 09, 2016
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use std::shared_ptr to manage memory
Change-Id: I3fcf285a75a1bf8252e0784c9ff4aceee64f4b5b
üst
2e0cea44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
animimp.hxx
xmloff/inc/animimp.hxx
+3
-2
animimp.cxx
xmloff/source/draw/animimp.cxx
+4
-9
No files found.
xmloff/inc/animimp.hxx
Dosyayı görüntüle @
7afc5ab5
...
...
@@ -20,6 +20,8 @@
#ifndef INCLUDED_XMLOFF_INC_ANIMIMP_HXX
#define INCLUDED_XMLOFF_INC_ANIMIMP_HXX
#include <memory>
#include <xmloff/xmlictxt.hxx>
#include <com/sun/star/drawing/XShapes.hpp>
...
...
@@ -29,7 +31,7 @@ class AnimImpImpl;
class
XMLAnimationsContext
:
public
SvXMLImportContext
{
AnimImpImpl
*
mpImpl
;
std
::
shared_ptr
<
AnimImpImpl
>
mpImpl
;
public
:
...
...
@@ -37,7 +39,6 @@ public:
sal_uInt16
nPrfx
,
const
OUString
&
rLocalName
,
const
css
::
uno
::
Reference
<
css
::
xml
::
sax
::
XAttributeList
>&
xAttrList
);
virtual
~
XMLAnimationsContext
();
virtual
SvXMLImportContext
*
CreateChildContext
(
sal_uInt16
nPrefix
,
const
OUString
&
rLocalName
,
const
css
::
uno
::
Reference
<
css
::
xml
::
sax
::
XAttributeList
>&
xAttrList
)
override
;
...
...
xmloff/source/draw/animimp.cxx
Dosyayı görüntüle @
7afc5ab5
...
...
@@ -361,7 +361,7 @@ enum XMLActionKind
class
XMLAnimationsEffectContext
:
public
SvXMLImportContext
{
public
:
AnimImpImpl
*
mpImpl
;
std
::
shared_ptr
<
AnimImpImpl
>
mpImpl
;
XMLActionKind
meKind
;
bool
mbTextEffect
;
...
...
@@ -383,7 +383,7 @@ public:
sal_uInt16
nPrfx
,
const
OUString
&
rLocalName
,
const
Reference
<
XAttributeList
>&
xAttrList
,
AnimImpImpl
*
pImpl
);
const
std
::
shared_ptr
<
AnimImpImpl
>&
pImpl
);
virtual
~
XMLAnimationsEffectContext
();
virtual
void
EndElement
()
override
;
...
...
@@ -439,7 +439,7 @@ XMLAnimationsSoundContext::~XMLAnimationsSoundContext()
}
XMLAnimationsEffectContext
::
XMLAnimationsEffectContext
(
SvXMLImport
&
rImport
,
sal_uInt16
nPrfx
,
const
OUString
&
rLocalName
,
const
Reference
<
XAttributeList
>&
xAttrList
,
AnimImpImpl
*
pImpl
)
XMLAnimationsEffectContext
::
XMLAnimationsEffectContext
(
SvXMLImport
&
rImport
,
sal_uInt16
nPrfx
,
const
OUString
&
rLocalName
,
const
Reference
<
XAttributeList
>&
xAttrList
,
const
std
::
shared_ptr
<
AnimImpImpl
>&
pImpl
)
:
SvXMLImportContext
(
rImport
,
nPrfx
,
rLocalName
),
mpImpl
(
pImpl
),
meKind
(
XMLE_SHOW
),
mbTextEffect
(
false
),
...
...
@@ -638,13 +638,8 @@ void XMLAnimationsEffectContext::EndElement()
XMLAnimationsContext
::
XMLAnimationsContext
(
SvXMLImport
&
rImport
,
sal_uInt16
nPrfx
,
const
OUString
&
rLocalName
,
const
css
::
uno
::
Reference
<
css
::
xml
::
sax
::
XAttributeList
>&
)
:
SvXMLImportContext
(
rImport
,
nPrfx
,
rLocalName
)
,
mpImpl
(
std
::
make_shared
<
AnimImpImpl
>
())
{
mpImpl
=
new
AnimImpImpl
();
}
XMLAnimationsContext
::~
XMLAnimationsContext
()
{
delete
mpImpl
;
}
SvXMLImportContext
*
XMLAnimationsContext
::
CreateChildContext
(
sal_uInt16
nPrefix
,
const
OUString
&
rLocalName
,
...
...
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