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
dc0d9e80
Kaydet (Commit)
dc0d9e80
authored
May 08, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Property writable test for util::DateTime & fixed a copy/paste error.
Change-Id: Iabfbe3f4df2c73ad9325bdc60e4ad71a5d1fda15
üst
02cf8bf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
xpropertyset.cxx
test/source/beans/xpropertyset.cxx
+9
-1
No files found.
test/source/beans/xpropertyset.cxx
Dosyayı görüntüle @
dc0d9e80
...
...
@@ -31,6 +31,7 @@
#include <com/sun/star/uno/Type.h>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/util/DateTime.hpp>
#include <set>
...
...
@@ -92,7 +93,7 @@ void XPropertySet::testGetPropertyValue()
// Check writable properties.
for
(
size_t
i
=
0
,
n
=
maPropsToTest
.
normal
.
size
();
i
<
n
;
++
i
)
{
bool
bSuccess
=
getSinglePropertyValue
(
xPropSet
,
maPropsToTest
.
readonly
[
i
]);
bool
bSuccess
=
getSinglePropertyValue
(
xPropSet
,
maPropsToTest
.
normal
[
i
]);
CPPUNIT_ASSERT
(
bSuccess
);
}
}
...
...
@@ -169,6 +170,13 @@ bool XPropertySet::isPropertyValueChangeable(const rtl::OUString& rName)
rtl
::
OUString
aNew
=
aOld
+
rtl
::
OUString
(
"foo"
);
xPropSet
->
setPropertyValue
(
rName
,
makeAny
(
aNew
));
}
else
if
(
type
==
getCppuType
<
util
::
DateTime
>
())
{
// date time type
util
::
DateTime
aDT
=
any
.
get
<
util
::
DateTime
>
();
aDT
.
Year
+=
1
;
xPropSet
->
setPropertyValue
(
rName
,
makeAny
(
aDT
));
}
else
{
CPPUNIT_ASSERT_MESSAGE
(
"XPropertySet::isChangeable: unknown type in Any tested."
,
false
);
...
...
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