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
9a01133a
Kaydet (Commit)
9a01133a
authored
Kas 12, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-Werror,-Wunused-member-function
Change-Id: I557d9628478b0cddf5a2b176403bdd67db5a0695
üst
89b1a041
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
test_unotype.cxx
cppu/qa/test_unotype.cxx
+14
-0
No files found.
cppu/qa/test_unotype.cxx
Dosyayı görüntüle @
9a01133a
...
...
@@ -59,12 +59,20 @@ struct DerivedInterface1: css::uno::XInterface {
private
:
~
DerivedInterface1
()
{}
// avoid warnings about virtual members and non-virtual dtor
public
:
static
void
dummy
(
DerivedInterface1
*
p
)
{
p
->~
DerivedInterface1
();
}
// ...and avoid warnings about unused ~DerivedInterface1 (see below)
};
struct
DerivedInterface2
:
css
::
uno
::
XComponentContext
{
private
:
~
DerivedInterface2
()
{}
// avoid warnings about virtual members and non-virtual dtor
public
:
static
void
dummy
(
DerivedInterface2
*
p
)
{
p
->~
DerivedInterface2
();
}
// ...and avoid warnings about unused ~DerivedInterface2 (see below)
};
class
Test
:
public
::
CppUnit
::
TestFixture
{
...
...
@@ -83,6 +91,12 @@ public:
};
void
Test
::
testUnoType
()
{
// Avoid warnings about unused ~DerivedInterface1/2 (see above):
if
(
false
)
{
DerivedInterface1
::
dummy
(
0
);
DerivedInterface2
::
dummy
(
0
);
}
css
::
uno
::
Type
t
;
t
=
::
cppu
::
UnoType
<
::
cppu
::
UnoVoidType
>::
get
();
CPPUNIT_ASSERT_EQUAL
(
+
css
::
uno
::
TypeClass_VOID
,
+
t
.
getTypeClass
());
...
...
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