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
59548784
Kaydet (Commit)
59548784
authored
Ock 16, 2018
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:useuniqueptr in SbiGlobals
Change-Id: I0ebec3193b4369039f90be4223ebdf6d048b8478
üst
263d7325
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
17 deletions
+18
-17
sb.cxx
basic/source/classes/sb.cxx
+8
-8
sbintern.cxx
basic/source/classes/sbintern.cxx
+3
-3
sbintern.hxx
basic/source/inc/sbintern.hxx
+3
-3
methods.cxx
basic/source/runtime/methods.cxx
+4
-3
No files found.
basic/source/classes/sb.cxx
Dosyayı görüntüle @
59548784
...
...
@@ -915,8 +915,8 @@ StarBASIC::StarBASIC( StarBASIC* p, bool bIsDocBasic )
if
(
!
GetSbData
()
->
nInst
++
)
{
GetSbData
()
->
pSbFac
=
new
SbiFactory
;
AddFactory
(
GetSbData
()
->
pSbFac
);
GetSbData
()
->
pSbFac
.
reset
(
new
SbiFactory
)
;
AddFactory
(
GetSbData
()
->
pSbFac
.
get
()
);
GetSbData
()
->
pTypeFac
=
new
SbTypeFactory
;
AddFactory
(
GetSbData
()
->
pTypeFac
);
GetSbData
()
->
pClassFac
=
new
SbClassFactory
;
...
...
@@ -925,8 +925,8 @@ StarBASIC::StarBASIC( StarBASIC* p, bool bIsDocBasic )
AddFactory
(
GetSbData
()
->
pOLEFac
);
GetSbData
()
->
pFormFac
=
new
SbFormFactory
;
AddFactory
(
GetSbData
()
->
pFormFac
);
GetSbData
()
->
pUnoFac
=
new
SbUnoFactory
;
AddFactory
(
GetSbData
()
->
pUnoFac
);
GetSbData
()
->
pUnoFac
.
reset
(
new
SbUnoFactory
)
;
AddFactory
(
GetSbData
()
->
pUnoFac
.
get
()
);
}
pRtl
=
new
SbiStdObject
(
RTLNAME
,
this
);
// Search via StarBasic is always global
...
...
@@ -954,10 +954,10 @@ StarBASIC::~StarBASIC()
if
(
!--
GetSbData
()
->
nInst
)
{
RemoveFactory
(
GetSbData
()
->
pSbFac
);
delete
GetSbData
()
->
pSbFac
;
GetSbData
()
->
pSbFac
=
nullptr
;
RemoveFactory
(
GetSbData
()
->
pUnoFac
);
delete
GetSbData
()
->
pUnoFac
;
GetSbData
()
->
pUnoFac
=
nullptr
;
RemoveFactory
(
GetSbData
()
->
pSbFac
.
get
()
);
GetSbData
()
->
pSbFac
.
reset
()
;
RemoveFactory
(
GetSbData
()
->
pUnoFac
.
get
()
);
GetSbData
()
->
pUnoFac
.
reset
()
;
RemoveFactory
(
GetSbData
()
->
pTypeFac
);
delete
GetSbData
()
->
pTypeFac
;
GetSbData
()
->
pTypeFac
=
nullptr
;
RemoveFactory
(
GetSbData
()
->
pClassFac
);
...
...
basic/source/classes/sbintern.cxx
Dosyayı görüntüle @
59548784
...
...
@@ -60,9 +60,9 @@ SbiGlobals::SbiGlobals()
SbiGlobals
::~
SbiGlobals
()
{
delete
pSbFac
;
delete
pUnoFac
;
delete
pTransliterationWrapper
;
pSbFac
.
reset
()
;
pUnoFac
.
reset
()
;
pTransliterationWrapper
.
reset
()
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
basic/source/inc/sbintern.hxx
Dosyayı görüntüle @
59548784
...
...
@@ -80,8 +80,8 @@ struct SbiGlobals
{
static
SbiGlobals
*
pGlobals
;
SbiInstance
*
pInst
;
// all active runtime instances
SbiFactory
*
pSbFac
;
// StarBASIC-Factory
SbUnoFactory
*
pUnoFac
;
// Factory for Uno-Structs at DIM AS NEW
std
::
unique_ptr
<
SbiFactory
>
pSbFac
;
// StarBASIC-Factory
std
::
unique_ptr
<
SbUnoFactory
>
pUnoFac
;
// Factory for Uno-Structs at DIM AS NEW
SbTypeFactory
*
pTypeFac
;
// Factory for user defined types
SbClassFactory
*
pClassFac
;
// Factory for user defined classes (based on class modules)
SbOLEFactory
*
pOLEFac
;
// Factory for OLE types
...
...
@@ -98,7 +98,7 @@ struct SbiGlobals
bool
bGlobalInitErr
;
bool
bRunInit
;
// true, if RunInit active from the Basic
OUString
aErrMsg
;
// buffer for GetErrorText()
::
utl
::
TransliterationWrapper
*
pTransliterationWrapper
;
// For StrComp
std
::
unique_ptr
<::
utl
::
TransliterationWrapper
>
pTransliterationWrapper
;
// For StrComp
bool
bBlockCompilerError
;
BasicManager
*
pAppBasMgr
;
StarBASIC
*
pMSOMacroRuntimLib
;
// Lib containing MSO Macro Runtime API entry symbols
...
...
basic/source/runtime/methods.cxx
Dosyayı görüntüle @
59548784
...
...
@@ -1536,15 +1536,16 @@ void SbRtl_StrComp(StarBASIC *, SbxArray & rPar, bool)
sal_Int32
nRetValue
=
0
;
if
(
bTextCompare
)
{
::
utl
::
TransliterationWrapper
*
pTransliterationWrapper
=
GetSbData
()
->
pTransliterationWrapper
;
::
utl
::
TransliterationWrapper
*
pTransliterationWrapper
=
GetSbData
()
->
pTransliterationWrapper
.
get
()
;
if
(
!
pTransliterationWrapper
)
{
uno
::
Reference
<
uno
::
XComponentContext
>
xContext
=
getProcessComponentContext
();
pTransliterationWrapper
=
GetSbData
()
->
pTransliterationWrapper
=
GetSbData
()
->
pTransliterationWrapper
.
reset
(
new
::
utl
::
TransliterationWrapper
(
xContext
,
TransliterationFlags
::
IGNORE_CASE
|
TransliterationFlags
::
IGNORE_KANA
|
TransliterationFlags
::
IGNORE_WIDTH
);
TransliterationFlags
::
IGNORE_WIDTH
)
);
pTransliterationWrapper
=
GetSbData
()
->
pTransliterationWrapper
.
get
();
}
LanguageType
eLangType
=
Application
::
GetSettings
().
GetLanguageTag
().
getLanguageType
();
...
...
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