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
05b28c1a
Kaydet (Commit)
05b28c1a
authored
Eyl 04, 2014
tarafından
Lionel Elie Mamane
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
janitorial: add const, factorise constant
Change-Id: Ifdaff62611452ce1e39604bd751168fe3e68d865
üst
a7fbabda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
dialog-save.cxx
dbaccess/qa/extras/dialog-save.cxx
+5
-5
No files found.
dbaccess/qa/extras/dialog-save.cxx
Dosyayı görüntüle @
05b28c1a
...
@@ -67,8 +67,8 @@ void DialogSaveTest::test()
...
@@ -67,8 +67,8 @@ void DialogSaveTest::test()
// be locked anyway:
// be locked anyway:
SolarMutexReleaser
rel
;
SolarMutexReleaser
rel
;
OUString
aFileName
;
const
OUString
sStandard
(
"Standard"
)
;
aFileName
=
getURLFromWorkdir
(
"CppunitTest/testDialogSave.odb"
);
const
OUString
aFileName
(
getURLFromWorkdir
(
"CppunitTest/testDialogSave.odb"
)
);
{
{
uno
::
Reference
<
lang
::
XComponent
>
xComponent
=
loadFromDesktop
(
aFileName
);
uno
::
Reference
<
lang
::
XComponent
>
xComponent
=
loadFromDesktop
(
aFileName
);
CPPUNIT_ASSERT
(
xComponent
.
is
());
CPPUNIT_ASSERT
(
xComponent
.
is
());
...
@@ -84,11 +84,11 @@ void DialogSaveTest::test()
...
@@ -84,11 +84,11 @@ void DialogSaveTest::test()
CPPUNIT_ASSERT
(
xStorDlgLib
.
is
());
CPPUNIT_ASSERT
(
xStorDlgLib
.
is
());
uno
::
Reference
<
script
::
XLibraryContainer
>
xDlgLib
(
xStorDlgLib
,
UNO_QUERY_THROW
);
uno
::
Reference
<
script
::
XLibraryContainer
>
xDlgLib
(
xStorDlgLib
,
UNO_QUERY_THROW
);
CPPUNIT_ASSERT
(
xDlgLib
.
is
());
CPPUNIT_ASSERT
(
xDlgLib
.
is
());
xBasLib
->
loadLibrary
(
"Standard"
);
xBasLib
->
loadLibrary
(
sStandard
);
CPPUNIT_ASSERT
(
xBasLib
->
isLibraryLoaded
(
"Standard"
));
CPPUNIT_ASSERT
(
xBasLib
->
isLibraryLoaded
(
sStandard
));
// the whole point of this test is to test the "save" operation
// the whole point of this test is to test the "save" operation
// when the Basic library is loaded, but not the Dialog library
// when the Basic library is loaded, but not the Dialog library
CPPUNIT_ASSERT
(
!
xDlgLib
->
isLibraryLoaded
(
"Standard"
));
CPPUNIT_ASSERT
(
!
xDlgLib
->
isLibraryLoaded
(
sStandard
));
// make some change to enable a save
// make some change to enable a save
// uno::Reference< document::XDocumentPropertiesSupplier > xDocPropSuppl(xComponent, UNO_QUERY_THROW);
// uno::Reference< document::XDocumentPropertiesSupplier > xDocPropSuppl(xComponent, UNO_QUERY_THROW);
...
...
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