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
d61b4501
Kaydet (Commit)
d61b4501
authored
Şub 08, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SvString is a just thin wrapper around OString
eliminate it Change-Id: Icb91d25cc7bffb3060b9392f71d37e5a95844aa3
üst
04e22bee
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
49 additions
and
64 deletions
+49
-64
basobj.hxx
idl/inc/basobj.hxx
+4
-4
bastype.hxx
idl/inc/bastype.hxx
+1
-16
module.hxx
idl/inc/module.hxx
+1
-1
slot.hxx
idl/inc/slot.hxx
+1
-1
basobj.cxx
idl/source/objects/basobj.cxx
+1
-1
bastype.cxx
idl/source/objects/bastype.cxx
+2
-2
module.cxx
idl/source/objects/module.cxx
+3
-3
object.cxx
idl/source/objects/object.cxx
+13
-13
slot.cxx
idl/source/objects/slot.cxx
+14
-14
types.cxx
idl/source/objects/types.cxx
+6
-6
database.cxx
idl/source/prj/database.cxx
+3
-3
No files found.
idl/inc/basobj.hxx
Dosyayı görüntüle @
d61b4501
...
...
@@ -80,7 +80,7 @@ public:
class
SvMetaObject
:
public
SvRttiBase
{
protected
:
Sv
String
aName
;
O
String
aName
;
bool
ReadNameSvIdl
(
SvTokenStream
&
rInStm
);
void
DoReadContextSvIdl
(
SvIdlDataBase
&
,
SvTokenStream
&
rInStm
);
...
...
@@ -95,7 +95,7 @@ public:
static
void
WriteStars
(
SvStream
&
);
void
SetName
(
const
OString
&
rName
);
virtual
const
Sv
String
&
GetName
()
const
{
return
aName
;
}
virtual
const
O
String
&
GetName
()
const
{
return
aName
;
}
virtual
bool
Test
(
SvIdlDataBase
&
,
SvTokenStream
&
rInStm
);
virtual
bool
ReadSvIdl
(
SvIdlDataBase
&
,
SvTokenStream
&
rInStm
);
...
...
@@ -130,10 +130,10 @@ protected:
public
:
SvMetaReference
();
const
SvString
&
GetName
()
const
override
const
OString
&
GetName
()
const
override
{
return
(
!
aRef
.
Is
()
||
!
SvMetaObject
::
GetName
().
getString
().
isEmpty
()
)
||
!
SvMetaObject
::
GetName
().
isEmpty
()
)
?
SvMetaObject
::
GetName
()
:
aRef
->
GetName
();
}
...
...
idl/inc/bastype.hxx
Dosyayı görüntüle @
d61b4501
...
...
@@ -68,22 +68,7 @@ public:
};
class
SvString
{
private
:
OString
m_aStr
;
public
:
SvString
()
{}
void
setString
(
const
OString
&
rStr
)
{
m_aStr
=
rStr
;
}
const
OString
&
getString
()
const
{
return
m_aStr
;
}
bool
ReadSvIdl
(
SvStringHashEntry
*
pName
,
SvTokenStream
&
rInStm
);
};
bool
ReadStringSvIdl
(
SvStringHashEntry
*
pName
,
SvTokenStream
&
rInStm
,
OString
&
aString
);
#endif // INCLUDED_IDL_INC_BASTYPE_HXX
...
...
idl/inc/module.hxx
Dosyayı görüntüle @
d61b4501
...
...
@@ -27,7 +27,7 @@ class SvMetaModule : public SvMetaReference
{
SvRefMemberList
<
SvMetaClass
*>
aClassList
;
// browser
SvString
aSlotIdFile
;
OString
aSlotIdFile
;
bool
bImported
:
1
,
bIsModified
:
1
;
...
...
idl/inc/slot.hxx
Dosyayı görüntüle @
d61b4501
...
...
@@ -50,7 +50,7 @@ class SvMetaSlot : public SvMetaAttribute
SvBOOL
aImageRotation
;
SvBOOL
aImageReflection
;
SvIdentifier
aPseudoPrefix
;
SvString
aDisableFlags
;
OString
aDisableFlags
;
SvMetaSlot
*
pLinkedSlot
;
SvMetaSlot
*
pNextSlot
;
sal_uLong
nListPos
;
...
...
idl/source/objects/basobj.cxx
Dosyayı görüntüle @
d61b4501
...
...
@@ -68,7 +68,7 @@ SvMetaObject::SvMetaObject()
void
SvMetaObject
::
SetName
(
const
OString
&
rName
)
{
aName
.
setString
(
rName
)
;
aName
=
rName
;
}
bool
SvMetaObject
::
ReadNameSvIdl
(
SvTokenStream
&
rInStm
)
...
...
idl/source/objects/bastype.cxx
Dosyayı görüntüle @
d61b4501
...
...
@@ -111,7 +111,7 @@ void SvIdentifier::ReadSvIdl( SvIdlDataBase & rBase,
rInStm
.
Seek
(
nTokPos
);
}
bool
SvString
::
ReadSvIdl
(
SvStringHashEntry
*
pName
,
SvTokenStream
&
rInStm
)
bool
ReadStringSvIdl
(
SvStringHashEntry
*
pName
,
SvTokenStream
&
rInStm
,
OString
&
aRetString
)
{
sal_uInt32
nTokPos
=
rInStm
.
Tell
();
SvToken
*
pTok
=
rInStm
.
GetToken_Next
();
...
...
@@ -125,7 +125,7 @@ bool SvString::ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm )
pTok
=
&
rInStm
.
GetToken
();
if
(
pTok
->
IsString
()
)
{
setString
(
pTok
->
GetString
()
);
aRetString
=
pTok
->
GetString
(
);
rInStm
.
GetToken_Next
();
}
if
(
bOk
&&
bBraket
)
...
...
idl/source/objects/module.cxx
Dosyayı görüntüle @
d61b4501
...
...
@@ -38,13 +38,13 @@ void SvMetaModule::ReadAttributesSvIdl( SvIdlDataBase & rBase,
{
SvMetaReference
::
ReadAttributesSvIdl
(
rBase
,
rInStm
);
if
(
aSlotIdFile
.
ReadSvIdl
(
SvHash_SlotIdFile
(),
rInStm
)
)
if
(
ReadStringSvIdl
(
SvHash_SlotIdFile
(),
rInStm
,
aSlotIdFile
)
)
{
sal_uInt32
nTokPos
=
rInStm
.
Tell
();
if
(
!
rBase
.
ReadIdFile
(
OStringToOUString
(
aSlotIdFile
.
getString
()
,
RTL_TEXTENCODING_ASCII_US
))
)
if
(
!
rBase
.
ReadIdFile
(
OStringToOUString
(
aSlotIdFile
,
RTL_TEXTENCODING_ASCII_US
))
)
{
OStringBuffer
aStr
(
"cannot read file: "
);
aStr
.
append
(
aSlotIdFile
.
getString
()
);
aStr
.
append
(
aSlotIdFile
);
rBase
.
SetError
(
aStr
.
makeStringAndClear
(),
rInStm
.
GetToken
()
);
rBase
.
WriteError
(
rInStm
);
...
...
idl/source/objects/object.cxx
Dosyayı görüntüle @
d61b4501
...
...
@@ -147,18 +147,18 @@ bool SvMetaClass::TestAttribute( SvIdlDataBase & rBase, SvTokenStream & rInStm,
for
(
sal_uLong
n
=
0
;
n
<
aAttrList
.
size
();
n
++
)
{
SvMetaAttribute
*
pS
=
aAttrList
[
n
];
if
(
pS
->
GetName
()
.
getString
()
==
rAttr
.
GetName
().
getString
()
)
if
(
pS
->
GetName
()
==
rAttr
.
GetName
()
)
{
// values have to match
if
(
pS
->
GetSlotId
().
GetValue
()
!=
rAttr
.
GetSlotId
().
GetValue
()
)
{
OSL_FAIL
(
"Same Name in MetaClass : "
);
OSL_FAIL
(
pS
->
GetName
().
getStr
ing
().
getStr
()
);
OSL_FAIL
(
pS
->
GetName
().
getStr
()
);
OSL_FAIL
(
pS
->
GetSlotId
().
getString
().
getStr
()
);
OSL_FAIL
(
rAttr
.
GetSlotId
().
getString
().
getStr
()
);
OStringBuffer
aStr
(
"Attribute's "
);
aStr
.
append
(
pS
->
GetName
()
.
getString
()
);
aStr
.
append
(
pS
->
GetName
());
aStr
.
append
(
" with different id's"
);
rBase
.
SetError
(
aStr
.
makeStringAndClear
(),
rInStm
.
GetToken
());
rBase
.
WriteError
(
rInStm
);
...
...
@@ -177,9 +177,9 @@ bool SvMetaClass::TestAttribute( SvIdlDataBase & rBase, SvTokenStream & rInStm,
OSL_FAIL
(
rAttr
.
GetSlotId
().
getString
().
getStr
()
);
OStringBuffer
aStr
(
"Attribute "
);
aStr
.
append
(
pS
->
GetName
()
.
getString
()
);
aStr
.
append
(
pS
->
GetName
());
aStr
.
append
(
" and Attribute "
);
aStr
.
append
(
rAttr
.
GetName
()
.
getString
()
);
aStr
.
append
(
rAttr
.
GetName
());
aStr
.
append
(
" with equal id's"
);
rBase
.
SetError
(
aStr
.
makeStringAndClear
(),
rInStm
.
GetToken
());
rBase
.
WriteError
(
rInStm
);
...
...
@@ -328,10 +328,10 @@ void SvMetaClass::WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm )
{
WriteStars
(
rOutStm
);
// define class
rOutStm
.
WriteCharPtr
(
"#ifdef "
).
WriteCharPtr
(
GetName
().
getStr
ing
().
getStr
()
)
<<
endl
;
rOutStm
.
WriteCharPtr
(
"#ifdef "
).
WriteCharPtr
(
GetName
().
getStr
()
)
<<
endl
;
rOutStm
.
WriteCharPtr
(
"#undef ShellClass"
)
<<
endl
;
rOutStm
.
WriteCharPtr
(
"#undef "
).
WriteCharPtr
(
GetName
().
getStr
ing
().
getStr
()
)
<<
endl
;
rOutStm
.
WriteCharPtr
(
"#define ShellClass "
).
WriteCharPtr
(
GetName
().
getStr
ing
().
getStr
()
)
<<
endl
;
rOutStm
.
WriteCharPtr
(
"#undef "
).
WriteCharPtr
(
GetName
().
getStr
()
)
<<
endl
;
rOutStm
.
WriteCharPtr
(
"#define ShellClass "
).
WriteCharPtr
(
GetName
().
getStr
()
)
<<
endl
;
// no slotmaps get written for interfaces
if
(
!
IsShell
()
)
...
...
@@ -340,7 +340,7 @@ void SvMetaClass::WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm )
return
;
}
// write parameter array
rOutStm
.
WriteCharPtr
(
"static SfxFormalArgument a"
).
WriteCharPtr
(
GetName
().
getStr
ing
().
getStr
()).
WriteCharPtr
(
"Args_Impl[] ="
)
<<
endl
;
rOutStm
.
WriteCharPtr
(
"static SfxFormalArgument a"
).
WriteCharPtr
(
GetName
().
getStr
()).
WriteCharPtr
(
"Args_Impl[] ="
)
<<
endl
;
rOutStm
.
WriteChar
(
'{'
)
<<
endl
;
std
::
vector
<
sal_uLong
>
aSuperList
;
...
...
@@ -370,7 +370,7 @@ void SvMetaClass::WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm )
rOutStm
.
WriteCharPtr
(
"};"
)
<<
endl
<<
endl
;
ByteStringList
aStringList
;
WriteSlotStubs
(
GetName
()
.
getString
()
,
aSlotList
,
aStringList
,
rOutStm
);
WriteSlotStubs
(
GetName
(),
aSlotList
,
aStringList
,
rOutStm
);
for
(
size_t
i
=
0
,
n
=
aStringList
.
size
();
i
<
n
;
++
i
)
delete
aStringList
[
i
];
aStringList
.
clear
();
...
...
@@ -378,18 +378,18 @@ void SvMetaClass::WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm )
rOutStm
<<
endl
;
// write slotmap
rOutStm
.
WriteCharPtr
(
"static SfxSlot a"
).
WriteCharPtr
(
GetName
().
getStr
ing
().
getStr
()).
WriteCharPtr
(
"Slots_Impl[] ="
)
<<
endl
;
rOutStm
.
WriteCharPtr
(
"static SfxSlot a"
).
WriteCharPtr
(
GetName
().
getStr
()).
WriteCharPtr
(
"Slots_Impl[] ="
)
<<
endl
;
rOutStm
.
WriteChar
(
'{'
)
<<
endl
;
// write all attributes
WriteSlots
(
GetName
()
.
getString
()
,
0
,
aSlotList
,
rBase
,
rOutStm
);
WriteSlots
(
GetName
(),
0
,
aSlotList
,
rBase
,
rOutStm
);
if
(
nSlotCount
)
Back2Delemitter
(
rOutStm
);
else
{
// at least one dummy
WriteTab
(
rOutStm
,
1
);
rOutStm
.
WriteCharPtr
(
"SFX_SLOT_ARG("
).
WriteCharPtr
(
GetName
().
getStr
ing
().
getStr
()
)
rOutStm
.
WriteCharPtr
(
"SFX_SLOT_ARG("
).
WriteCharPtr
(
GetName
().
getStr
()
)
.
WriteCharPtr
(
", 0, 0, "
)
.
WriteCharPtr
(
"SFX_STUB_PTR_EXEC_NONE,"
)
.
WriteCharPtr
(
"SFX_STUB_PTR_STATE_NONE,"
)
...
...
idl/source/objects/slot.cxx
Dosyayı görüntüle @
d61b4501
...
...
@@ -99,9 +99,9 @@ OString SvMetaSlot::GetMangleName( bool bVariable ) const
{
SvMetaAttribute
*
pMeth
=
GetMethod
();
if
(
pMeth
)
return
pMeth
->
GetName
()
.
getString
()
;
return
pMeth
->
GetName
();
}
return
GetName
()
.
getString
()
;
return
GetName
();
}
/*************************************************************************
...
...
@@ -128,7 +128,7 @@ const OString& SvMetaSlot::GetGroupId() const
}
const
OString
&
SvMetaSlot
::
GetDisableFlags
()
const
{
if
(
!
aDisableFlags
.
getString
().
isEmpty
()
||
!
GetRef
()
)
return
aDisableFlags
.
getString
()
;
if
(
!
aDisableFlags
.
isEmpty
()
||
!
GetRef
()
)
return
aDisableFlags
;
return
static_cast
<
SvMetaSlot
*>
(
GetRef
())
->
GetDisableFlags
();
}
const
OString
&
SvMetaSlot
::
GetExecMethod
()
const
...
...
@@ -246,7 +246,7 @@ void SvMetaSlot::ReadAttributesSvIdl( SvIdlDataBase & rBase,
bOk
|=
aGroupId
.
ReadSvIdl
(
SvHash_GroupId
(),
rInStm
);
bOk
|=
aExecMethod
.
ReadSvIdl
(
SvHash_ExecMethod
(),
rInStm
);
bOk
|=
aStateMethod
.
ReadSvIdl
(
SvHash_StateMethod
(),
rInStm
);
bOk
|=
aDisableFlags
.
ReadSvIdl
(
SvHash_DisableFlags
(),
rInStm
);
bOk
|=
ReadStringSvIdl
(
SvHash_DisableFlags
(),
rInStm
,
aDisableFlags
);
bOk
|=
aReadOnlyDoc
.
ReadSvIdl
(
SvHash_ReadOnlyDoc
(),
rInStm
);
bOk
|=
aExport
.
ReadSvIdl
(
SvHash_Export
(),
rInStm
);
...
...
@@ -366,13 +366,13 @@ bool SvMetaSlot::ReadSvIdl( SvIdlDataBase & rBase, SvTokenStream & rInStm )
if
(
pKnownSlot
)
{
SetRef
(
pKnownSlot
);
SetName
(
pKnownSlot
->
GetName
()
.
getString
()
);
SetName
(
pKnownSlot
->
GetName
()
);
bOk
=
SvMetaObject
::
ReadSvIdl
(
rBase
,
rInStm
);
}
else
{
OStringBuffer
aStr
(
"attribute "
);
aStr
.
append
(
pAttr
->
GetName
()
.
getString
()
);
aStr
.
append
(
pAttr
->
GetName
());
aStr
.
append
(
" is method or variable but not a slot"
);
rBase
.
SetError
(
aStr
.
makeStringAndClear
(),
rInStm
.
GetToken
()
);
rBase
.
WriteError
(
rInStm
);
...
...
@@ -393,19 +393,19 @@ bool SvMetaSlot::ReadSvIdl( SvIdlDataBase & rBase, SvTokenStream & rInStm )
SetRef
(
pKnownSlot
);
// names may differ, because explicitly given
if
(
pKnownSlot
->
GetName
()
.
getString
()
!=
GetName
().
getString
()
)
if
(
pKnownSlot
->
GetName
()
!=
GetName
()
)
{
OSL_FAIL
(
"Illegal definition!"
);
rInStm
.
Seek
(
nTokPos
);
return
false
;
}
SetName
(
pKnownSlot
->
GetName
()
.
getString
()
);
SetName
(
pKnownSlot
->
GetName
()
);
}
else
{
OStringBuffer
aStr
(
"attribute "
);
aStr
.
append
(
pAttr2
->
GetName
()
.
getString
()
);
aStr
.
append
(
pAttr2
->
GetName
());
aStr
.
append
(
" is method or variable but not a slot"
);
rBase
.
SetError
(
aStr
.
makeStringAndClear
(),
rInStm
.
GetToken
()
);
rBase
.
WriteError
(
rInStm
);
...
...
@@ -499,7 +499,7 @@ void SvMetaSlot::Insert( SvSlotElementList& rList, const OString& rPrefix,
{
// create SlotId
SvMetaEnumValue
*
enumValue
=
pEnum
->
GetObject
(
n
);
OString
aValName
=
enumValue
->
GetName
()
.
getString
()
;
OString
aValName
=
enumValue
->
GetName
();
OStringBuffer
aBuf
;
if
(
!
GetPseudoPrefix
().
isEmpty
()
)
aBuf
.
append
(
GetPseudoPrefix
());
...
...
@@ -687,7 +687,7 @@ void SvMetaSlot::WriteSlot( const OString& rShellName, sal_uInt16 nCount,
else
rOutStm
.
WriteChar
(
'0'
);
rOutStm
.
WriteChar
(
','
);
rOutStm
.
WriteCharPtr
(
pEnumValue
->
GetName
().
getStr
ing
().
getStr
()
);
rOutStm
.
WriteCharPtr
(
pEnumValue
->
GetName
().
getStr
()
);
}
else
{
...
...
@@ -822,7 +822,7 @@ void SvMetaSlot::WriteSlot( const OString& rShellName, sal_uInt16 nCount,
}
if
(
pT
)
{
rOutStm
.
WriteCharPtr
(
pT
->
GetName
().
getStr
ing
().
getStr
()
);
rOutStm
.
WriteCharPtr
(
pT
->
GetName
().
getStr
()
);
if
(
!
SvIdlDataBase
::
FindType
(
pT
,
rBase
.
aUsedTypes
)
)
rBase
.
aUsedTypes
.
push_back
(
pT
);
}
...
...
@@ -904,9 +904,9 @@ sal_uInt16 SvMetaSlot::WriteSlotParamArray( SvIdlDataBase & rBase, SvStream & rO
WriteTab
(
rOutStm
,
1
);
rOutStm
.
WriteCharPtr
(
"{ (const SfxType*) &a"
)
// item type
.
WriteCharPtr
(
pPType
->
GetName
().
getStr
ing
().
getStr
()).
WriteCharPtr
(
"_Impl, "
)
.
WriteCharPtr
(
pPType
->
GetName
().
getStr
()).
WriteCharPtr
(
"_Impl, "
)
// parameter name
.
WriteCharPtr
(
"
\"
"
).
WriteCharPtr
(
pPar
->
GetName
().
getStr
ing
().
getStr
()).
WriteCharPtr
(
"
\"
, "
)
.
WriteCharPtr
(
"
\"
"
).
WriteCharPtr
(
pPar
->
GetName
().
getStr
()).
WriteCharPtr
(
"
\"
, "
)
// slot id
.
WriteCharPtr
(
pPar
->
GetSlotId
().
getString
().
getStr
()).
WriteCharPtr
(
" },"
)
<<
endl
;
if
(
!
SvIdlDataBase
::
FindType
(
pPType
,
rBase
.
aUsedTypes
)
)
...
...
idl/source/objects/types.cxx
Dosyayı görüntüle @
d61b4501
...
...
@@ -65,7 +65,7 @@ bool SvMetaAttribute::IsVariable() const
OString
SvMetaAttribute
::
GetMangleName
(
bool
)
const
{
return
GetName
()
.
getString
()
;
return
GetName
();
}
bool
SvMetaAttribute
::
Test
(
SvIdlDataBase
&
rBase
,
...
...
@@ -139,7 +139,7 @@ sal_uLong SvMetaAttribute::MakeSfx( OStringBuffer& rAttrArray )
rAttrArray
.
append
(
'{'
);
rAttrArray
.
append
(
GetSlotId
().
getString
());
rAttrArray
.
append
(
",
\"
"
);
rAttrArray
.
append
(
GetName
()
.
getString
()
);
rAttrArray
.
append
(
GetName
());
rAttrArray
.
append
(
"
\"
}"
);
return
1
;
}
...
...
@@ -350,9 +350,9 @@ void SvMetaType::WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm )
if
(
IsItem
()
)
{
if
(
GetBaseType
()
->
GetType
()
==
MetaTypeType
::
Struct
)
GetBaseType
()
->
WriteSfxItem
(
GetName
()
.
getString
()
,
rBase
,
rOutStm
);
GetBaseType
()
->
WriteSfxItem
(
GetName
(),
rBase
,
rOutStm
);
else
WriteSfxItem
(
GetName
()
.
getString
()
,
rBase
,
rOutStm
);
WriteSfxItem
(
GetName
(),
rBase
,
rOutStm
);
}
}
...
...
@@ -420,11 +420,11 @@ void SvMetaTypeEnum::ReadContextSvIdl( SvIdlDataBase & rBase,
if
(
aEnumValueList
.
empty
()
)
{
// the first
aPrefix
=
aEnumVal
->
GetName
()
.
getString
()
;
aPrefix
=
aEnumVal
->
GetName
();
}
else
{
aPrefix
=
getCommonSubPrefix
(
aPrefix
,
aEnumVal
->
GetName
()
.
getString
()
);
aPrefix
=
getCommonSubPrefix
(
aPrefix
,
aEnumVal
->
GetName
());
}
aEnumValueList
.
push_back
(
aEnumVal
);
}
...
...
idl/source/prj/database.cxx
Dosyayı görüntüle @
d61b4501
...
...
@@ -267,7 +267,7 @@ SvMetaType * SvIdlDataBase::FindType( const SvMetaType * pPType,
SvMetaType
*
SvIdlDataBase
::
FindType
(
const
OString
&
rName
)
{
for
(
SvRefMemberList
<
SvMetaType
*>::
const_iterator
it
=
aTypeList
.
begin
();
it
!=
aTypeList
.
end
();
++
it
)
if
(
rName
.
equals
((
*
it
)
->
GetName
()
.
getString
()
)
)
if
(
rName
.
equals
((
*
it
)
->
GetName
())
)
return
*
it
;
return
nullptr
;
}
...
...
@@ -294,7 +294,7 @@ SvMetaType * SvIdlDataBase::ReadKnownType( SvTokenStream & rInStm )
SvMetaType
*
pType
=
nullptr
;
while
(
it
!=
rList
.
end
()
)
{
if
(
(
*
it
)
->
GetName
().
getString
().
equals
(
aName
)
)
if
(
(
*
it
)
->
GetName
().
equals
(
aName
)
)
{
pType
=
*
it
;
break
;
...
...
@@ -378,7 +378,7 @@ SvMetaClass * SvIdlDataBase::ReadKnownClass( SvTokenStream & rInStm )
for
(
sal_uLong
n
=
0
;
n
<
aClassList
.
size
();
n
++
)
{
SvMetaClass
*
pClass
=
aClassList
[
n
];
if
(
pClass
->
GetName
().
getString
().
equals
(
pTok
->
GetString
())
)
if
(
pClass
->
GetName
().
equals
(
pTok
->
GetString
())
)
return
pClass
;
}
...
...
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