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
27b7175e
Kaydet (Commit)
27b7175e
authored
Nis 09, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up function declarations
Change-Id: I2478861e79bbb0f6d7e8a0b7bc59a81f457d92dc
üst
22f7c87d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
13 deletions
+14
-13
CppunitTest_cppu_qa_reference.mk
cppu/CppunitTest_cppu_qa_reference.mk
+2
-0
test_any.cxx
cppu/qa/test_any.cxx
+2
-4
test_reference.cxx
cppu/qa/test_reference.cxx
+10
-9
No files found.
cppu/CppunitTest_cppu_qa_reference.mk
Dosyayı görüntüle @
27b7175e
...
...
@@ -14,6 +14,8 @@ $(eval $(call gb_CppunitTest_add_exception_objects,cppu_qa_reference, \
cppu/qa/test_reference \
))
$(eval $(call gb_CppunitTest_use_external,cppu_qa_reference,boost_headers))
$(eval $(call gb_CppunitTest_use_libraries,cppu_qa_reference, \
cppu \
sal \
...
...
cppu/qa/test_any.cxx
Dosyayı görüntüle @
27b7175e
...
...
@@ -43,6 +43,7 @@
#include "Struct2.hpp"
#include "Struct2a.hpp"
#include "Struct2b.hpp"
#include "boost/noncopyable.hpp"
#include "boost/type_traits/is_same.hpp"
#include "com/sun/star/uno/Any.hxx"
#include "com/sun/star/uno/Reference.hxx"
...
...
@@ -59,7 +60,7 @@
namespace
{
class
Base
{
class
Base
:
private
boost
::
noncopyable
{
public
:
Base
()
:
m_count
(
0
)
{}
...
...
@@ -79,9 +80,6 @@ protected:
virtual
~
Base
()
{}
private
:
Base
(
Base
&
);
// not declared
void
operator
=
(
Base
&
);
// not declared
oslInterlockedCount
m_count
;
};
...
...
cppu/qa/test_reference.cxx
Dosyayı görüntüle @
27b7175e
...
...
@@ -19,6 +19,7 @@
#include <sal/types.h>
#include <boost/noncopyable.hpp>
#include <cppunit/TestSuite.h>
#include <cppunit/TestFixture.h>
#include <cppunit/TestCase.h>
...
...
@@ -39,7 +40,7 @@ using ::com::sun::star::uno::Reference;
using
::
com
::
sun
::
star
::
uno
::
RuntimeException
;
using
::
com
::
sun
::
star
::
uno
::
UNO_SET_THROW
;
class
Foo
:
public
Interface1
class
Foo
:
public
Interface1
,
private
boost
::
noncopyable
{
public
:
Foo
()
...
...
@@ -81,10 +82,6 @@ protected:
{
}
private
:
Foo
(
Foo
&
);
// not declared
Foo
&
operator
=
(
const
Foo
&
);
// not declared
private
:
oslInterlockedCount
m_refCount
;
};
...
...
@@ -92,10 +89,14 @@ private:
// Check that the up-casting Reference conversion constructor catches the
// intended cases:
struct
Base1
:
public
css
::
uno
::
XInterface
{
virtual
~
Base1
()
=
0
;
};
struct
Base2
:
public
Base1
{};
struct
Base3
:
public
Base1
{};
struct
Derived
:
public
Base2
,
public
Base3
{};
struct
Base1
:
public
css
::
uno
::
XInterface
{
virtual
~
Base1
()
SAL_DELETED_FUNCTION
;
};
struct
Base2
:
public
Base1
{
virtual
~
Base2
()
SAL_DELETED_FUNCTION
;
};
struct
Base3
:
public
Base1
{
virtual
~
Base3
()
SAL_DELETED_FUNCTION
;
};
struct
Derived
:
public
Base2
,
public
Base3
{
virtual
~
Derived
()
SAL_DELETED_FUNCTION
;
};
// The special case using the conversion operator instead:
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
testUpcast1
(
...
...
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