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
a7a6f775
Kaydet (Commit)
a7a6f775
authored
Haz 12, 2012
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SbPropertyValues: rename members
Change-Id: Iad6bc5af052a0795608ec11ee11c8dea3d091868
üst
f9c5a366
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
propacc.cxx
basic/source/classes/propacc.cxx
+17
-17
propacc.hxx
basic/source/inc/propacc.hxx
+2
-2
No files found.
basic/source/classes/propacc.cxx
Dosyayı görüntüle @
a7a6f775
...
...
@@ -94,10 +94,10 @@ SbPropertyValues::SbPropertyValues()
SbPropertyValues
::~
SbPropertyValues
()
{
_xInfo
=
Reference
<
XPropertySetInfo
>
();
m
_xInfo
=
Reference
<
XPropertySetInfo
>
();
for
(
sal_uInt16
n
=
0
;
n
<
_aPropVals
.
size
();
++
n
)
delete
_aPropVals
[
n
];
for
(
sal_uInt16
n
=
0
;
n
<
m
_aPropVals
.
size
();
++
n
)
delete
m
_aPropVals
[
n
];
}
//----------------------------------------------------------------------------
...
...
@@ -105,12 +105,12 @@ SbPropertyValues::~SbPropertyValues()
Reference
<
XPropertySetInfo
>
SbPropertyValues
::
getPropertySetInfo
(
void
)
throw
(
RuntimeException
)
{
// create on demand?
if
(
!
_xInfo
.
is
()
)
if
(
!
m_xInfo
.
is
()
)
{
SbPropertySetInfo
*
pInfo
=
new
SbPropertySetInfo
(
_aPropVals
);
((
SbPropertyValues
*
)
this
)
->
_xInfo
=
(
XPropertySetInfo
*
)
pInfo
;
SbPropertySetInfo
*
pInfo
=
new
SbPropertySetInfo
(
m
_aPropVals
);
m_xInfo
.
set
(
pInfo
)
;
}
return
_xInfo
;
return
m
_xInfo
;
}
//-------------------------------------------------------------------------
...
...
@@ -118,15 +118,15 @@ Reference< XPropertySetInfo > SbPropertyValues::getPropertySetInfo(void) throw(
size_t
SbPropertyValues
::
GetIndex_Impl
(
const
::
rtl
::
OUString
&
rPropName
)
const
{
SbPropertyValueArr_Impl
::
const_iterator
it
=
std
::
lower_bound
(
_aPropVals
.
begin
(),
_aPropVals
.
end
(),
rPropName
,
m_aPropVals
.
begin
(),
m
_aPropVals
.
end
(),
rPropName
,
SbCompare_UString_PropertyValue_Impl
()
);
if
(
it
==
_aPropVals
.
end
())
if
(
it
==
m
_aPropVals
.
end
())
{
throw
beans
::
UnknownPropertyException
(
"Property not found: "
+
rPropName
,
const_cast
<
SbPropertyValues
&>
(
*
this
));
}
return
it
-
_aPropVals
.
begin
();
return
it
-
m
_aPropVals
.
begin
();
}
//----------------------------------------------------------------------------
...
...
@@ -141,7 +141,7 @@ void SbPropertyValues::setPropertyValue(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
size_t
const
nIndex
=
GetIndex_Impl
(
aPropertyName
);
PropertyValue
*
const
pPropVal
=
_aPropVals
[
nIndex
];
PropertyValue
*
const
pPropVal
=
m
_aPropVals
[
nIndex
];
pPropVal
->
Value
=
aValue
;
}
...
...
@@ -154,7 +154,7 @@ Any SbPropertyValues::getPropertyValue(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
size_t
const
nIndex
=
GetIndex_Impl
(
aPropertyName
);
return
_aPropVals
[
nIndex
]
->
Value
;
return
m
_aPropVals
[
nIndex
]
->
Value
;
}
//----------------------------------------------------------------------------
...
...
@@ -201,9 +201,9 @@ void SbPropertyValues::removeVetoableChangeListener(
Sequence
<
PropertyValue
>
SbPropertyValues
::
getPropertyValues
(
void
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
Sequence
<
PropertyValue
>
aRet
(
_aPropVals
.
size
()
);
for
(
sal_uInt16
n
=
0
;
n
<
_aPropVals
.
size
();
++
n
)
aRet
.
getArray
()[
n
]
=
*
_aPropVals
[
n
];
Sequence
<
PropertyValue
>
aRet
(
m
_aPropVals
.
size
()
);
for
(
sal_uInt16
n
=
0
;
n
<
m
_aPropVals
.
size
();
++
n
)
aRet
.
getArray
()[
n
]
=
*
m
_aPropVals
[
n
];
return
aRet
;
}
...
...
@@ -216,14 +216,14 @@ void SbPropertyValues::setPropertyValues(const Sequence< PropertyValue >& rPrope
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
if
(
!
_aPropVals
.
empty
()
)
if
(
!
m
_aPropVals
.
empty
()
)
throw
PropertyExistException
();
const
PropertyValue
*
pPropVals
=
rPropertyValues
.
getConstArray
();
for
(
sal_Int16
n
=
0
;
n
<
rPropertyValues
.
getLength
();
++
n
)
{
PropertyValue
*
pPropVal
=
new
PropertyValue
(
pPropVals
[
n
]);
_aPropVals
.
push_back
(
pPropVal
);
m
_aPropVals
.
push_back
(
pPropVal
);
}
}
...
...
basic/source/inc/propacc.hxx
Dosyayı görüntüle @
a7a6f775
...
...
@@ -47,8 +47,8 @@ typedef ::cppu::WeakImplHelper2< ::com::sun::star::beans::XPropertySet,
class
SbPropertyValues
:
public
SbPropertyValuesHelper
{
SbPropertyValueArr_Impl
_aPropVals
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySetInfo
>
_xInfo
;
SbPropertyValueArr_Impl
m
_aPropVals
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySetInfo
>
m
_xInfo
;
private
:
size_t
GetIndex_Impl
(
const
::
rtl
::
OUString
&
rPropName
)
const
;
...
...
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