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
da8bfce2
Kaydet (Commit)
da8bfce2
authored
Haz 12, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix memory leak
Change-Id: Ib0a2d8d69f5bd43872c949d79c685f71657dc9db
üst
85e6eb78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
loadenv.hxx
framework/source/inc/loadenv/loadenv.hxx
+3
-3
loadenv.cxx
framework/source/loadenv/loadenv.cxx
+5
-8
No files found.
framework/source/inc/loadenv/loadenv.hxx
Dosyayı görüntüle @
da8bfce2
...
...
@@ -32,7 +32,7 @@
#include <com/sun/star/io/IOException.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/util/URL.hpp>
#include <rtl/ref.hxx>
#include <unotools/mediadescriptor.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <cppuhelper/implbase2.hxx>
...
...
@@ -192,7 +192,7 @@ private:
*/
ActionLockGuard
m_aTargetLock
;
QuietInteraction
*
m_pQuietInteraction
;
rtl
::
Reference
<
QuietInteraction
>
m_pQuietInteraction
;
public
:
...
...
@@ -367,7 +367,7 @@ public:
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>&
i_rxContext
,
utl
::
MediaDescriptor
&
io_lMediaDescriptor
,
const
bool
_bUIMode
,
QuietInteraction
*
*
o_ppQuiteInteraction
rtl
::
Reference
<
QuietInteraction
>
*
o_ppQuiteInteraction
);
/** TODO document me ... */
...
...
framework/source/loadenv/loadenv.cxx
Dosyayı görüntüle @
da8bfce2
...
...
@@ -132,7 +132,6 @@ LoadEnv::LoadEnv(const css::uno::Reference< css::uno::XComponentContext >& xCont
,
m_bCloseFrameOnError
(
false
)
,
m_bReactivateControllerOnError
(
false
)
,
m_bLoaded
(
false
)
,
m_pQuietInteraction
(
0
)
{
}
...
...
@@ -297,7 +296,7 @@ void LoadEnv::initializeLoading(const OUString&
void
LoadEnv
::
initializeUIDefaults
(
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>&
i_rxContext
,
utl
::
MediaDescriptor
&
io_lMediaDescriptor
,
const
bool
i_bUIMode
,
QuietInteraction
*
*
o_ppQuietInteraction
)
rtl
::
Reference
<
QuietInteraction
>
*
o_ppQuietInteraction
)
{
css
::
uno
::
Reference
<
css
::
task
::
XInteractionHandler
>
xInteractionHandler
;
sal_Int16
nMacroMode
;
...
...
@@ -319,12 +318,11 @@ void LoadEnv::initializeUIDefaults( const css::uno::Reference< css::uno::XCompon
{
nMacroMode
=
css
::
document
::
MacroExecMode
::
NEVER_EXECUTE
;
nUpdateMode
=
css
::
document
::
UpdateDocMode
::
NO_UPDATE
;
QuietInteraction
*
pQuietInteraction
=
new
QuietInteraction
();
xInteractionHandler
=
css
::
uno
::
Reference
<
css
::
task
::
XInteractionHandler
>
(
static_cast
<
css
::
task
::
XInteractionHandler
*
>
(
pQuietInteraction
),
css
::
uno
::
UNO_QUERY
);
rtl
::
Reference
<
QuietInteraction
>
pQuietInteraction
=
new
QuietInteraction
();
xInteractionHandler
=
pQuietInteraction
.
get
(
);
if
(
o_ppQuietInteraction
!=
NULL
)
{
*
o_ppQuietInteraction
=
pQuietInteraction
;
(
*
o_ppQuietInteraction
)
->
acquire
();
}
}
...
...
@@ -1618,11 +1616,10 @@ void LoadEnv::impl_reactForLoadingState()
css
::
uno
::
Any
aRequest
;
bool
bThrow
=
false
;
if
(
!
m_bLoaded
&&
m_pQuietInteraction
&&
m_pQuietInteraction
->
wasUsed
()
)
if
(
!
m_bLoaded
&&
m_pQuietInteraction
.
is
()
&&
m_pQuietInteraction
->
wasUsed
()
)
{
aRequest
=
m_pQuietInteraction
->
getRequest
();
m_pQuietInteraction
->
release
();
m_pQuietInteraction
=
0
;
m_pQuietInteraction
.
clear
();
bThrow
=
true
;
}
...
...
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