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
c60ee62c
Kaydet (Commit)
c60ee62c
authored
Kas 11, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sfx2: rename static variable SfxApplication::pApp etc.
Change-Id: I69bb8ab014864ad77448785dfcd291d7c51a0cef
üst
c4787618
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
12 deletions
+15
-12
app.hxx
include/sfx2/app.hxx
+1
-3
app.cxx
sfx2/source/appl/app.cxx
+12
-7
ResourceManager.cxx
sfx2/source/sidebar/ResourceManager.cxx
+2
-2
No files found.
include/sfx2/app.hxx
Dosyayı görüntüle @
c60ee62c
...
...
@@ -115,8 +115,6 @@ class SfxObjectShellLock;
class
SFX2_DLLPUBLIC
SfxApplication
:
public
SfxShell
{
SAL_DLLPRIVATE
static
SfxApplication
*
pApp
;
SfxAppData_Impl
*
pAppData_Impl
;
DECL_DLLPRIVATE_LINK_TYPED
(
GlobalBasicErrorHdl_Impl
,
StarBASIC
*
,
bool
);
...
...
@@ -135,7 +133,7 @@ public:
SfxApplication
();
virtual
~
SfxApplication
();
static
SfxApplication
*
GetOrCreate
();
static
SfxApplication
*
Get
()
{
return
pApp
;}
static
SfxApplication
*
Get
()
;
// Resource Manager
static
ResMgr
*
GetSfxResManager
();
...
...
sfx2/source/appl/app.cxx
Dosyayı görüntüle @
c60ee62c
...
...
@@ -121,8 +121,8 @@
using
namespace
::
com
::
sun
::
star
;
// Static member
SfxApplication
*
SfxApplication
::
pApp
=
nullptr
;
static
SfxApplication
*
g_pSfxApplication
=
nullptr
;
#if HAVE_FEATURE_SCRIPTING
static
BasicDLL
*
pBasic
=
nullptr
;
#endif
...
...
@@ -142,20 +142,25 @@ namespace
#include <sfx2/imagemgr.hxx>
#include "fwkhelper.hxx"
SfxApplication
*
SfxApplication
::
Get
()
{
return
g_pSfxApplication
;
}
SfxApplication
*
SfxApplication
::
GetOrCreate
()
{
// SFX on demand
::
osl
::
MutexGuard
aGuard
(
theApplicationMutex
::
get
());
if
(
!
pApp
)
if
(
!
g_pSfxApplication
)
{
SAL_INFO
(
"sfx.appl"
,
"SfxApplication::SetApp"
);
pApp
=
new
SfxApplication
;
g_pSfxApplication
=
new
SfxApplication
;
// at the moment a bug may occur when Initialize_Impl returns FALSE,
// but this is only temporary because all code that may cause such
// a fault will be moved outside the SFX
pApp
->
Initialize_Impl
();
g_pSfxApplication
->
Initialize_Impl
();
::
framework
::
SetImageProducer
(
GetImage
);
::
framework
::
SetRefreshToolbars
(
RefreshToolbars
);
...
...
@@ -176,7 +181,7 @@ SfxApplication* SfxApplication::GetOrCreate()
Help
::
DisableBalloonHelp
();
#endif
}
return
pApp
;
return
g_pSfxApplication
;
}
SfxApplication
::
SfxApplication
()
...
...
@@ -243,7 +248,7 @@ SfxApplication::~SfxApplication()
#endif
delete
pAppData_Impl
;
pApp
=
nullptr
;
g_pSfxApplication
=
nullptr
;
}
...
...
sfx2/source/sidebar/ResourceManager.cxx
Dosyayı görüntüle @
c60ee62c
...
...
@@ -58,8 +58,8 @@ bool getBool(utl::OConfigurationNode const & aNode, const char* pNodeName)
ResourceManager
&
ResourceManager
::
Instance
()
{
static
ResourceManager
ma
Instance
;
return
ma
Instance
;
static
ResourceManager
s_SidebarResourceManager
Instance
;
return
s_SidebarResourceManager
Instance
;
}
ResourceManager
::
ResourceManager
()
...
...
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