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
d7b418b5
Kaydet (Commit)
d7b418b5
authored
Eki 22, 2010
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
startup optimization, move static strings to first use point
üst
3a99fb0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
sb.cxx
basic/source/classes/sb.cxx
+3
-8
No files found.
basic/source/classes/sb.cxx
Dosyayı görüntüle @
d7b418b5
...
...
@@ -35,9 +35,7 @@
#include <tools/rcid.h>
#include <tools/config.hxx>
#include <tools/stream.hxx>
#ifndef __RSC //autogen
#include <tools/errinf.hxx>
#endif
#include <basic/sbx.hxx>
#include <tools/list.hxx>
#include <tools/shl.hxx>
...
...
@@ -64,8 +62,6 @@
#include <com/sun/star/script/ModuleInfo.hpp>
using
namespace
::
com
::
sun
::
star
::
script
;
// #pragma SW_SEGMENT_CLASS( SBASIC, SBASIC_CODE )
SV_IMPL_VARARR
(
SbTextPortions
,
SbTextPortion
)
TYPEINIT1
(
StarBASIC
,
SbxObject
)
...
...
@@ -77,9 +73,6 @@ using com::sun::star::uno::Any;
using
com
::
sun
::
star
::
uno
::
UNO_QUERY
;
using
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
;
const
static
String
aThisComponent
(
RTL_CONSTASCII_USTRINGPARAM
(
"ThisComponent"
)
);
const
static
String
aVBAHook
(
RTL_CONSTASCII_USTRINGPARAM
(
"VBAGlobals"
)
);
SbxObject
*
StarBASIC
::
getVBAGlobals
(
)
{
if
(
!
pVBAGlobals
)
...
...
@@ -88,7 +81,7 @@ SbxObject* StarBASIC::getVBAGlobals( )
if
(
GetUNOConstant
(
"ThisComponent"
,
aThisDoc
)
)
{
Reference
<
XMultiServiceFactory
>
xDocFac
(
aThisDoc
,
UNO_QUERY
);
if
(
xDocFac
.
is
()
)
if
(
xDocFac
.
is
()
)
{
try
{
...
...
@@ -100,6 +93,7 @@ SbxObject* StarBASIC::getVBAGlobals( )
}
}
}
const
String
aVBAHook
(
RTL_CONSTASCII_USTRINGPARAM
(
"VBAGlobals"
)
);
pVBAGlobals
=
(
SbUnoObject
*
)
Find
(
aVBAHook
,
SbxCLASS_DONTCARE
);
}
return
pVBAGlobals
;
...
...
@@ -108,6 +102,7 @@ SbxObject* StarBASIC::getVBAGlobals( )
// i#i68894#
SbxVariable
*
StarBASIC
::
VBAFind
(
const
String
&
rName
,
SbxClassType
t
)
{
const
static
String
aThisComponent
(
RTL_CONSTASCII_USTRINGPARAM
(
"ThisComponent"
)
);
if
(
rName
==
aThisComponent
)
return
NULL
;
// rename to init globals
...
...
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