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
e69fd541
Kaydet (Commit)
e69fd541
authored
Tem 06, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace GetAppData(SHL_IDL) with a static pointer var
Change-Id: Ia1e22ff95457a958ef26974091aa2092b32505bd
üst
e294fa92
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
basrdll.cxx
basic/source/runtime/basrdll.cxx
+12
-7
basrdll.hxx
include/basic/basrdll.hxx
+0
-2
shl.hxx
include/tools/shl.hxx
+1
-1
No files found.
basic/source/runtime/basrdll.cxx
Dosyayı görüntüle @
e69fd541
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
*/
#include <tools/shl.hxx>
#include <vcl/svapp.hxx>
#include <vcl/svapp.hxx>
#include <svl/solar.hrc>
#include <svl/solar.hrc>
#include <tools/debug.hxx>
#include <tools/debug.hxx>
...
@@ -46,15 +45,21 @@ struct BasicDLL::Impl
...
@@ -46,15 +45,21 @@ struct BasicDLL::Impl
{
}
{
}
};
};
namespace
{
BasicDLL
*
BASIC_DLL
;
}
BasResId
::
BasResId
(
sal_uInt32
nId
)
:
BasResId
::
BasResId
(
sal_uInt32
nId
)
:
ResId
(
nId
,
*
(
BASIC_DLL
()
->
GetBasResMgr
())
)
ResId
(
nId
,
*
(
BASIC_DLL
->
GetBasResMgr
())
)
{
{
}
}
BasicDLL
::
BasicDLL
()
BasicDLL
::
BasicDLL
()
:
m_xImpl
(
new
Impl
)
:
m_xImpl
(
new
Impl
)
{
{
BASIC_DLL
()
=
this
;
BASIC_DLL
=
this
;
}
}
BasicDLL
::~
BasicDLL
()
BasicDLL
::~
BasicDLL
()
...
@@ -65,7 +70,7 @@ ResMgr* BasicDLL::GetBasResMgr() const { return m_xImpl->xBasResMgr.get(); }
...
@@ -65,7 +70,7 @@ ResMgr* BasicDLL::GetBasResMgr() const { return m_xImpl->xBasResMgr.get(); }
void
BasicDLL
::
EnableBreak
(
bool
bEnable
)
void
BasicDLL
::
EnableBreak
(
bool
bEnable
)
{
{
BasicDLL
*
pThis
=
BASIC_DLL
()
;
BasicDLL
*
pThis
=
BASIC_DLL
;
DBG_ASSERT
(
pThis
,
"BasicDLL::EnableBreak: No instance yet!"
);
DBG_ASSERT
(
pThis
,
"BasicDLL::EnableBreak: No instance yet!"
);
if
(
pThis
)
if
(
pThis
)
{
{
...
@@ -75,7 +80,7 @@ void BasicDLL::EnableBreak( bool bEnable )
...
@@ -75,7 +80,7 @@ void BasicDLL::EnableBreak( bool bEnable )
void
BasicDLL
::
SetDebugMode
(
bool
bDebugMode
)
void
BasicDLL
::
SetDebugMode
(
bool
bDebugMode
)
{
{
BasicDLL
*
pThis
=
BASIC_DLL
()
;
BasicDLL
*
pThis
=
BASIC_DLL
;
DBG_ASSERT
(
pThis
,
"BasicDLL::EnableBreak: No instance yet!"
);
DBG_ASSERT
(
pThis
,
"BasicDLL::EnableBreak: No instance yet!"
);
if
(
pThis
)
if
(
pThis
)
{
{
...
@@ -86,7 +91,7 @@ void BasicDLL::SetDebugMode( bool bDebugMode )
...
@@ -86,7 +91,7 @@ void BasicDLL::SetDebugMode( bool bDebugMode )
void
BasicDLL
::
BasicBreak
()
void
BasicDLL
::
BasicBreak
()
{
{
BasicDLL
*
pThis
=
BASIC_DLL
()
;
BasicDLL
*
pThis
=
BASIC_DLL
;
DBG_ASSERT
(
pThis
,
"BasicDLL::EnableBreak: No instance yet!"
);
DBG_ASSERT
(
pThis
,
"BasicDLL::EnableBreak: No instance yet!"
);
if
(
pThis
)
if
(
pThis
)
{
{
...
@@ -106,7 +111,7 @@ void BasicDLL::BasicBreak()
...
@@ -106,7 +111,7 @@ void BasicDLL::BasicBreak()
SbxAppData
&
GetSbxData_Impl
()
SbxAppData
&
GetSbxData_Impl
()
{
{
return
*
BASIC_DLL
()
->
m_xImpl
->
xSbxAppData
;
return
*
BASIC_DLL
->
m_xImpl
->
xSbxAppData
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
include/basic/basrdll.hxx
Dosyayı görüntüle @
e69fd541
...
@@ -43,8 +43,6 @@ public:
...
@@ -43,8 +43,6 @@ public:
static
void
SetDebugMode
(
bool
bDebugMode
);
static
void
SetDebugMode
(
bool
bDebugMode
);
};
};
#define BASIC_DLL() (*reinterpret_cast<BasicDLL**>(GetAppData( SHL_BASIC )) )
#endif // INCLUDED_BASIC_BASRDLL_HXX
#endif // INCLUDED_BASIC_BASRDLL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
include/tools/shl.hxx
Dosyayı görüntüle @
e69fd541
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
//20 (SHL_IDE) removed
//20 (SHL_IDE) removed
//21 (SHL_EDIT) removed
//21 (SHL_EDIT) removed
//22 (SHL_VCED) removed
//22 (SHL_VCED) removed
#define SHL_BASIC 23
//23 (SHL_BASIC) removed
//24 (SHL_HELP) removed
//24 (SHL_HELP) removed
//25 (SHL_LNKCCH) removed
//25 (SHL_LNKCCH) removed
//26 (SHL_CHANNEL) removed
//26 (SHL_CHANNEL) removed
...
...
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