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
fa7708de
Kaydet (Commit)
fa7708de
authored
Kas 26, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
mutex used in post-main dtor
Change-Id: Ia4f4def1fd58d82a7c994114e45a36227269671c
üst
5b9062a2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
3 deletions
+30
-3
commandinfoprovider.hxx
include/vcl/commandinfoprovider.hxx
+2
-0
svdata.hxx
vcl/inc/svdata.hxx
+6
-1
svmain.cxx
vcl/source/app/svmain.cxx
+7
-0
commandinfoprovider.cxx
vcl/source/helper/commandinfoprovider.cxx
+15
-2
No files found.
include/vcl/commandinfoprovider.hxx
Dosyayı görüntüle @
fa7708de
...
...
@@ -100,6 +100,8 @@ public:
*/
void
SetFrame
(
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
);
void
dispose
();
private
:
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
mxContext
;
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>
mxCachedDataFrame
;
...
...
vcl/inc/svdata.hxx
Dosyayı görüntüle @
fa7708de
...
...
@@ -75,7 +75,11 @@ class Image;
class
PopupMenu
;
class
Application
;
class
OutputDevice
;
namespace
vcl
{
class
Window
;
}
namespace
vcl
{
class
CommandInfoProvider
;
class
Window
;
}
class
SystemWindow
;
class
WorkWindow
;
class
Dialog
;
...
...
@@ -338,6 +342,7 @@ struct ImplSVData
VclPtr
<
vcl
::
Window
>
mpIntroWindow
;
// the splash screen
DockingManager
*
mpDockingManager
;
BlendFrameCache
*
mpBlendFrameCache
;
vcl
::
CommandInfoProvider
*
mpCommandInfoProvider
;
oslThreadIdentifier
mnMainThreadId
;
rtl
::
Reference
<
vcl
::
DisplayConnection
>
mxDisplayConnection
;
...
...
vcl/source/app/svmain.cxx
Dosyayı görüntüle @
fa7708de
...
...
@@ -38,6 +38,7 @@
#include "vcl/implimagetree.hxx"
#include "vcl/settings.hxx"
#include "vcl/unowrap.hxx"
#include "vcl/commandinfoprovider.hxx"
#include "vcl/configsettings.hxx"
#include "vcl/lazydelete.hxx"
#include "vcl/embeddedfontshelper.hxx"
...
...
@@ -517,6 +518,12 @@ void DeInitVCL()
if
(
pSVData
->
mpBlendFrameCache
)
delete
pSVData
->
mpBlendFrameCache
,
pSVData
->
mpBlendFrameCache
=
nullptr
;
if
(
pSVData
->
mpCommandInfoProvider
)
{
pSVData
->
mpCommandInfoProvider
->
dispose
();
pSVData
->
mpCommandInfoProvider
=
nullptr
;
}
ImplDeletePrnQueueList
();
delete
pSVData
->
maGDIData
.
mpScreenFontList
;
pSVData
->
maGDIData
.
mpScreenFontList
=
nullptr
;
...
...
vcl/source/helper/commandinfoprovider.cxx
Dosyayı görüntüle @
fa7708de
...
...
@@ -31,6 +31,8 @@
#include <com/sun/star/ui/XImageManager.hpp>
#include <com/sun/star/awt/KeyModifier.hpp>
#include "svdata.hxx"
using
namespace
css
;
using
namespace
css
::
uno
;
...
...
@@ -100,15 +102,26 @@ CommandInfoProvider::CommandInfoProvider()
msCachedModuleIdentifier
(),
mxFrameListener
()
{
ImplGetSVData
()
->
mpCommandInfoProvider
=
this
;
}
CommandInfoProvider
::~
CommandInfoProvider
()
void
CommandInfoProvider
::
dispose
()
{
if
(
mxFrameListener
.
is
())
{
mxFrameListener
->
dispose
();
mxFrameListener
=
nullptr
;
mxFrameListener
.
clear
()
;
}
mxCachedGlobalAcceleratorConfiguration
.
clear
();
mxCachedModuleAcceleratorConfiguration
.
clear
();
mxCachedDocumentAcceleratorConfiguration
.
clear
();
mxCachedDataFrame
.
clear
();
mxContext
.
clear
();
}
CommandInfoProvider
::~
CommandInfoProvider
()
{
dispose
();
}
OUString
CommandInfoProvider
::
GetLabelForCommand
(
...
...
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