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
623445aa
Kaydet (Commit)
623445aa
authored
Haz 04, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert PropertyMode to scoped enum
Change-Id: I9b0bbf6273aa18ae918d1d69af5dcc7652181f5c
üst
42f771d6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
20 deletions
+20
-20
codegen.cxx
basic/source/comp/codegen.cxx
+4
-4
dim.cxx
basic/source/comp/dim.cxx
+5
-5
symtbl.cxx
basic/source/comp/symtbl.cxx
+6
-6
sbdef.hxx
include/basic/sbdef.hxx
+5
-5
No files found.
basic/source/comp/codegen.cxx
Dosyayı görüntüle @
623445aa
...
...
@@ -227,15 +227,15 @@ void SbiCodeGen::Save()
aProcName
=
aIfaceProcName
;
}
PropertyMode
ePropMode
=
pProc
->
getPropertyMode
();
if
(
ePropMode
!=
P
ROPERTY_MODE_
NONE
)
if
(
ePropMode
!=
P
ropertyMode
::
NONE
)
{
SbxDataType
ePropType
=
SbxEMPTY
;
switch
(
ePropMode
)
{
case
P
ROPERTY_MODE_GET
:
case
P
ropertyMode
:
:
Get
:
ePropType
=
pProc
->
GetType
();
break
;
case
P
ROPERTY_MODE_LET
:
case
P
ropertyMode
:
:
Let
:
{
// type == type of first parameter
ePropType
=
SbxVARIANT
;
// Default
...
...
@@ -250,7 +250,7 @@ void SbiCodeGen::Save()
}
break
;
}
case
P
ROPERTY_MODE_SET
:
case
P
ropertyMode
:
:
Set
:
ePropType
=
SbxOBJECT
;
break
;
default
:
...
...
basic/source/comp/dim.cxx
Dosyayı görüntüle @
623445aa
...
...
@@ -1172,21 +1172,21 @@ void SbiParser::DefProc( bool bStatic, bool bPrivate )
sal_uInt16
l1
=
nLine
;
bool
bSub
=
(
eCurTok
==
SUB
);
bool
bProperty
=
(
eCurTok
==
PROPERTY
);
PropertyMode
ePropertyMode
=
P
ROPERTY_MODE_
NONE
;
PropertyMode
ePropertyMode
=
P
ropertyMode
::
NONE
;
if
(
bProperty
)
{
Next
();
if
(
eCurTok
==
GET
)
{
ePropertyMode
=
P
ROPERTY_MODE_GET
;
ePropertyMode
=
P
ropertyMode
::
Get
;
}
else
if
(
eCurTok
==
LET
)
{
ePropertyMode
=
P
ROPERTY_MODE_LET
;
ePropertyMode
=
P
ropertyMode
::
Let
;
}
else
if
(
eCurTok
==
SET
)
{
ePropertyMode
=
P
ROPERTY_MODE_SET
;
ePropertyMode
=
P
ropertyMode
::
Set
;
}
else
{
...
...
@@ -1222,7 +1222,7 @@ void SbiParser::DefProc( bool bStatic, bool bPrivate )
else
if
(
pProc
->
IsUsedForProcDecl
()
)
{
PropertyMode
ePropMode
=
pDef
->
getPropertyMode
();
if
(
ePropMode
==
P
ROPERTY_MODE_
NONE
||
ePropMode
==
pProc
->
getPropertyMode
()
)
if
(
ePropMode
==
P
ropertyMode
::
NONE
||
ePropMode
==
pProc
->
getPropertyMode
()
)
{
Error
(
SbERR_PROC_DEFINED
,
pDef
->
GetName
()
);
delete
pDef
;
...
...
basic/source/comp/symtbl.cxx
Dosyayı görüntüle @
623445aa
...
...
@@ -405,7 +405,7 @@ SbiProcDef::SbiProcDef( SbiParser* pParser, const OUString& rName,
pPool
->
SetParent
(
&
aParams
);
nLine1
=
nLine2
=
0
;
mePropMode
=
P
ROPERTY_MODE_
NONE
;
mePropMode
=
P
ropertyMode
::
NONE
;
bPublic
=
true
;
bCdecl
=
false
;
bStatic
=
false
;
...
...
@@ -470,7 +470,7 @@ void SbiProcDef::Match( SbiProcDef* pOld )
void
SbiProcDef
::
setPropertyMode
(
PropertyMode
ePropMode
)
{
mePropMode
=
ePropMode
;
if
(
mePropMode
!=
P
ROPERTY_MODE_
NONE
)
if
(
mePropMode
!=
P
ropertyMode
::
NONE
)
{
// Prop name = original scanned procedure name
maPropName
=
aName
;
...
...
@@ -480,10 +480,10 @@ void SbiProcDef::setPropertyMode( PropertyMode ePropMode )
OUString
aCompleteProcName
=
"Property "
;
switch
(
mePropMode
)
{
case
P
ROPERTY_MODE_GET
:
aCompleteProcName
+=
"Get "
;
break
;
case
P
ROPERTY_MODE_LET
:
aCompleteProcName
+=
"Let "
;
break
;
case
P
ROPERTY_MODE_SET
:
aCompleteProcName
+=
"Set "
;
break
;
case
P
ROPERTY_MODE_NONE
:
OSL_FAIL
(
"Illegal PropertyMode PROPERTY_MODE_
NONE"
);
break
;
case
P
ropertyMode
:
:
Get
:
aCompleteProcName
+=
"Get "
;
break
;
case
P
ropertyMode
:
:
Let
:
aCompleteProcName
+=
"Let "
;
break
;
case
P
ropertyMode
:
:
Set
:
aCompleteProcName
+=
"Set "
;
break
;
case
P
ropertyMode
:
:
NONE
:
OSL_FAIL
(
"Illegal PropertyMode PropertyMode::
NONE"
);
break
;
}
aCompleteProcName
+=
aName
;
aName
=
aCompleteProcName
;
...
...
include/basic/sbdef.hxx
Dosyayı görüntüle @
623445aa
...
...
@@ -55,12 +55,12 @@ BASIC_DLLPUBLIC void setBasicWatchMode( bool bOn );
#define SBX_HINT_BASICSTART SFX_HINT_USER04
#define SBX_HINT_BASICSTOP SFX_HINT_USER05
enum
PropertyMode
enum
class
PropertyMode
{
PROPERTY_MODE_
NONE
,
PROPERTY_MODE_GET
,
PROPERTY_MODE_LET
,
PROPERTY_MODE_SET
NONE
,
Get
,
Let
,
Set
};
#endif
...
...
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