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
f50f9c43
Kaydet (Commit)
f50f9c43
authored
Eki 09, 2012
tarafından
Ricardo Montania
Kaydeden (comit)
Muthu Subramanian
Eki 13, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Review corrections in basctl/.../basobj3.cxx
Change-Id: I905e85ce9d754047ad287c9dd3caa92427b25b0d
üst
3818933e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
basobj3.cxx
basctl/source/basicide/basobj3.cxx
+5
-5
No files found.
basctl/source/basicide/basobj3.cxx
Dosyayı görüntüle @
f50f9c43
...
@@ -83,20 +83,20 @@ SbMethod* CreateMacro( SbModule* pModule, const String& rMacroName )
...
@@ -83,20 +83,20 @@ SbMethod* CreateMacro( SbModule* pModule, const String& rMacroName )
if
(
pModule
->
GetMethods
()
->
Find
(
rMacroName
,
SbxCLASS_METHOD
)
)
if
(
pModule
->
GetMethods
()
->
Find
(
rMacroName
,
SbxCLASS_METHOD
)
)
return
0
;
return
0
;
String
aMacroName
(
rMacroName
);
OU
String
aMacroName
(
rMacroName
);
if
(
aMacroName
.
Len
()
==
0
)
if
(
aMacroName
.
getLength
()
==
0
)
{
{
if
(
!
pModule
->
GetMethods
()
->
Count
()
)
if
(
!
pModule
->
GetMethods
()
->
Count
()
)
aMacroName
=
String
(
"Main"
)
;
aMacroName
=
"Main"
;
else
else
{
{
bool
bValid
=
false
;
bool
bValid
=
false
;
String
aStdMacroText
(
"Macro"
);
OU
String
aStdMacroText
(
"Macro"
);
sal_uInt16
nMacro
=
1
;
sal_uInt16
nMacro
=
1
;
while
(
!
bValid
)
while
(
!
bValid
)
{
{
aMacroName
=
aStdMacroText
;
aMacroName
=
aStdMacroText
;
aMacroName
+=
String
::
CreateFromInt32
(
nMacro
);
aMacroName
+=
OUString
::
valueOf
(
nMacro
);
// test whether existing...
// test whether existing...
bValid
=
pModule
->
GetMethods
()
->
Find
(
aMacroName
,
SbxCLASS_METHOD
)
?
false
:
true
;
bValid
=
pModule
->
GetMethods
()
->
Find
(
aMacroName
,
SbxCLASS_METHOD
)
?
false
:
true
;
nMacro
++
;
nMacro
++
;
...
...
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