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
5b3a30f4
Kaydet (Commit)
5b3a30f4
authored
May 13, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix warning when running "make check" with werror
Change-Id: I490568b715f21c94a1078fe04368ed7c9132c311
üst
cb7b94bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
recordchanges-test.cxx
sc/qa/extras/recordchanges-test.cxx
+6
-6
No files found.
sc/qa/extras/recordchanges-test.cxx
Dosyayı görüntüle @
5b3a30f4
...
...
@@ -42,8 +42,8 @@ void ScRecordChangesTest::testSetRecordChanges()
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
xDoc
(
xComponent
,
UNO_QUERY_THROW
);
uno
::
Reference
<
beans
::
XPropertySet
>
xDocSettingsPropSet
(
xDoc
,
UNO_QUERY_THROW
);
bool
recordChangesValue
;
bool
protectionValue
;
bool
recordChangesValue
=
true
;
bool
protectionValue
=
true
;
CPPUNIT_ASSERT
(
xDocSettingsPropSet
->
getPropertyValue
(
"RecordChanges"
)
>>=
recordChangesValue
);
CPPUNIT_ASSERT
(
xDocSettingsPropSet
->
getPropertyValue
(
"IsRecordChangesProtected"
)
>>=
protectionValue
);
...
...
@@ -52,7 +52,7 @@ void ScRecordChangesTest::testSetRecordChanges()
CPPUNIT_ASSERT_MESSAGE
(
"a new document does not protect record changes"
,
!
protectionValue
);
// now activate recording
uno
::
Any
xValue
;
;
uno
::
Any
xValue
;
xValue
<<=
true
;
xDocSettingsPropSet
->
setPropertyValue
(
"RecordChanges"
,
xValue
);
...
...
@@ -72,8 +72,8 @@ void ScRecordChangesTest::testCheckRecordChangesProtection()
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
xDoc
(
xComponent
,
UNO_QUERY_THROW
);
uno
::
Reference
<
beans
::
XPropertySet
>
xDocSettingsPropSet
(
xDoc
,
UNO_QUERY_THROW
);
bool
recordChangesValue
;
bool
protectionValue
;
bool
recordChangesValue
=
false
;
bool
protectionValue
=
false
;
CPPUNIT_ASSERT
(
xDocSettingsPropSet
->
getPropertyValue
(
"RecordChanges"
)
>>=
recordChangesValue
);
CPPUNIT_ASSERT
(
xDocSettingsPropSet
->
getPropertyValue
(
"IsRecordChangesProtected"
)
>>=
protectionValue
);
...
...
@@ -82,7 +82,7 @@ void ScRecordChangesTest::testCheckRecordChangesProtection()
CPPUNIT_ASSERT_MESSAGE
(
"the protection should be active"
,
protectionValue
);
// try to de-activate recording
uno
::
Any
xValue
;
;
uno
::
Any
xValue
;
xValue
<<=
false
;
xDocSettingsPropSet
->
setPropertyValue
(
"RecordChanges"
,
xValue
);
...
...
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