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
3d07d32e
Kaydet (Commit)
3d07d32e
authored
Mar 30, 2011
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert DBG_ assertions to OSL_
üst
e76e239b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
propertysetbase.cxx
forms/source/xforms/propertysetbase.cxx
+5
-5
No files found.
forms/source/xforms/propertysetbase.cxx
Dosyayı görüntüle @
3d07d32e
...
...
@@ -80,7 +80,7 @@ cppu::IPropertyArrayHelper& SAL_CALL PropertySetBase::getInfoHelper()
{
if
(
!
m_pProperties
)
{
DBG_ASSERT
(
!
m_aProperties
.
empty
(),
"PropertySetBase::getInfoHelper: no registered properties!"
);
OSL_ENSURE
(
!
m_aProperties
.
empty
(),
"PropertySetBase::getInfoHelper: no registered properties!"
);
m_pProperties
=
new
cppu
::
OPropertyArrayHelper
(
&
m_aProperties
[
0
],
m_aProperties
.
size
(),
sal_False
);
}
return
*
m_pProperties
;
...
...
@@ -94,10 +94,10 @@ Reference< XPropertySetInfo > SAL_CALL PropertySetBase::getPropertySetInfo( ) t
void
PropertySetBase
::
registerProperty
(
const
Property
&
rProperty
,
const
::
rtl
::
Reference
<
PropertyAccessorBase
>&
rAccessor
)
{
DBG_ASSERT
(
rAccessor
.
get
(),
"PropertySetBase::registerProperty: invalid property accessor, this will crash!"
);
OSL_ENSURE
(
rAccessor
.
get
(),
"PropertySetBase::registerProperty: invalid property accessor, this will crash!"
);
m_aAccessors
.
insert
(
PropertyAccessors
::
value_type
(
rProperty
.
Handle
,
rAccessor
)
);
DBG_ASSERT
(
(
rAccessor
->
isWriteable
()
==
true
)
OSL_ENSURE
(
(
rAccessor
->
isWriteable
()
==
true
)
==
(
(
rProperty
.
Attributes
&
com
::
sun
::
star
::
beans
::
PropertyAttribute
::
READONLY
)
==
0
),
"PropertySetBase::registerProperty: inconsistence!"
);
...
...
@@ -149,13 +149,13 @@ void PropertySetBase::initializePropertyValueCache( sal_Int32 nHandle )
::
std
::
pair
<
PropertyValueCache
::
iterator
,
bool
>
aInsertResult
=
#endif
m_aCache
.
insert
(
PropertyValueCache
::
value_type
(
nHandle
,
aCurrentValue
)
);
DBG_ASSERT
(
aInsertResult
.
second
,
"PropertySetBase::initializePropertyValueCache: already cached a value for this property!"
);
OSL_ENSURE
(
aInsertResult
.
second
,
"PropertySetBase::initializePropertyValueCache: already cached a value for this property!"
);
}
PropertyAccessorBase
&
PropertySetBase
::
locatePropertyHandler
(
sal_Int32
nHandle
)
const
{
PropertyAccessors
::
const_iterator
aPropertyPos
=
m_aAccessors
.
find
(
nHandle
);
DBG_ASSERT
(
aPropertyPos
!=
m_aAccessors
.
end
()
&&
aPropertyPos
->
second
.
get
(),
OSL_ENSURE
(
aPropertyPos
!=
m_aAccessors
.
end
()
&&
aPropertyPos
->
second
.
get
(),
"PropertySetBase::locatePropertyHandler: accessor map is corrupted!"
);
// neither should this be called for handles where there is no accessor, nor should a
// NULL accssor be in the map
...
...
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