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
13ca560d
Kaydet (Commit)
13ca560d
authored
Ock 12, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix memory leak
Change-Id: I82ce013a42ac1cd9bb4f3842e9fba8fbc6056b3c
üst
55a754cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
dummyobject.cxx
embeddedobj/source/general/dummyobject.cxx
+3
-5
dummyobject.hxx
embeddedobj/source/inc/dummyobject.hxx
+8
-3
No files found.
embeddedobj/source/general/dummyobject.cxx
Dosyayı görüntüle @
13ca560d
...
...
@@ -30,8 +30,6 @@
#include <com/sun/star/embed/NoVisualAreaSizeException.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <cppuhelper/interfacecontainer.h>
#include <dummyobject.hxx>
...
...
@@ -594,7 +592,7 @@ void SAL_CALL ODummyEmbeddedObject::addStateChangeListener( const uno::Reference
return
;
if
(
!
m_pInterfaceContainer
)
m_pInterfaceContainer
=
new
::
cppu
::
OMultiTypeInterfaceContainerHelper
(
m_aMutex
);
m_pInterfaceContainer
.
reset
(
new
::
cppu
::
OMultiTypeInterfaceContainerHelper
(
m_aMutex
)
);
m_pInterfaceContainer
->
addInterface
(
cppu
::
UnoType
<
embed
::
XStateChangeListener
>::
get
(),
xListener
);
...
...
@@ -676,7 +674,7 @@ void SAL_CALL ODummyEmbeddedObject::addCloseListener( const uno::Reference< util
return
;
if
(
!
m_pInterfaceContainer
)
m_pInterfaceContainer
=
new
::
cppu
::
OMultiTypeInterfaceContainerHelper
(
m_aMutex
);
m_pInterfaceContainer
.
reset
(
new
::
cppu
::
OMultiTypeInterfaceContainerHelper
(
m_aMutex
)
);
m_pInterfaceContainer
->
addInterface
(
cppu
::
UnoType
<
util
::
XCloseListener
>::
get
(),
xListener
);
}
...
...
@@ -700,7 +698,7 @@ void SAL_CALL ODummyEmbeddedObject::addEventListener( const uno::Reference< docu
return
;
if
(
!
m_pInterfaceContainer
)
m_pInterfaceContainer
=
new
::
cppu
::
OMultiTypeInterfaceContainerHelper
(
m_aMutex
);
m_pInterfaceContainer
.
reset
(
new
::
cppu
::
OMultiTypeInterfaceContainerHelper
(
m_aMutex
)
);
m_pInterfaceContainer
->
addInterface
(
cppu
::
UnoType
<
document
::
XEventListener
>::
get
(),
xListener
);
}
...
...
embeddedobj/source/inc/dummyobject.hxx
Dosyayı görüntüle @
13ca560d
...
...
@@ -20,12 +20,17 @@
#ifndef INCLUDED_EMBEDDEDOBJ_SOURCE_INC_DUMMYOBJECT_HXX
#define INCLUDED_EMBEDDEDOBJ_SOURCE_INC_DUMMYOBJECT_HXX
#include <sal/config.h>
#include <memory>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <com/sun/star/embed/XEmbedPersist.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/interfacecontainer.hxx>
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
embed
{
...
...
@@ -49,7 +54,8 @@ class ODummyEmbeddedObject : public ::cppu::WeakImplHelper
,
css
::
embed
::
XEmbedPersist
>
{
::
osl
::
Mutex
m_aMutex
;
::
cppu
::
OMultiTypeInterfaceContainerHelper
*
m_pInterfaceContainer
;
std
::
unique_ptr
<
cppu
::
OMultiTypeInterfaceContainerHelper
>
m_pInterfaceContainer
;
bool
m_bDisposed
;
OUString
m_aEntryName
;
...
...
@@ -75,8 +81,7 @@ protected:
public
:
ODummyEmbeddedObject
()
:
m_pInterfaceContainer
(
nullptr
)
,
m_bDisposed
(
false
)
:
m_bDisposed
(
false
)
,
m_nObjectState
(
-
1
)
,
m_nCachedAspect
(
0
)
,
m_bHasCachedSize
(
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