[Libreoffice-commits] .: salhelper/test
Caolán McNamara
caolan at kemper.freedesktop.org
Mon Nov 29 03:29:42 PST 2010
salhelper/test/rtti/exports.dxp | 2 --
salhelper/test/rtti/rttitest.cxx | 15 ++-------------
salhelper/test/rtti/samplelibrtti.cxx | 8 --------
salhelper/test/rtti/samplelibrtti.hxx | 5 -----
salhelper/test/rtti/sols.map | 2 --
5 files changed, 2 insertions(+), 30 deletions(-)
New commits:
commit 278e5b511fa549b50cbc84e6705100806c383e92
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Nov 29 11:29:09 2010 +0000
get these tests to build again
diff --git a/salhelper/test/rtti/exports.dxp b/salhelper/test/rtti/exports.dxp
index 41a9804..beafa6a 100644
--- a/salhelper/test/rtti/exports.dxp
+++ b/salhelper/test/rtti/exports.dxp
@@ -1,8 +1,6 @@
?funcA at MyClassA@@UAEXXZ
?funcB at MyClassA@@UAEXXZ
?funcC at MyClassA@@MAEXXZ
-?funcD at MyClassA@@EAEXXZ
?funcA at MyClassB@@UAEXXZ
?funcB at MyClassB@@UAEXXZ
?funcC at MyClassB@@MAEXXZ
-?funcD at MyClassB@@EAEXXZ
\ No newline at end of file
diff --git a/salhelper/test/rtti/rttitest.cxx b/salhelper/test/rtti/rttitest.cxx
index 5e5ea2c..8add435 100644
--- a/salhelper/test/rtti/rttitest.cxx
+++ b/salhelper/test/rtti/rttitest.cxx
@@ -1,31 +1,20 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#include <rtl/ustring>
#include <stdio.h>
#include <typeinfo>
#include "samplelibrtti.hxx"
-
-//using namespace salhelper;
-using namespace rtl;
-
-
-
-int main( int argc, char *argv[ ], char *envp[ ] )
+int main( void )
{
MyClassB b;
MyClassA* pA= &b;
// test the virtual function
pA->funcA();
-// const type_info& i1= typeid ( b);
-// const type_info& i2= typeid( pA);
-
if( typeid( b) == typeid( pA))
printf("\nsame types");
-
MyClassB* pB= dynamic_cast<MyClassB* >( pA);
- pB->funcA();
+ pB->funcA();
return 0;
}
diff --git a/salhelper/test/rtti/samplelibrtti.cxx b/salhelper/test/rtti/samplelibrtti.cxx
index 26b4a68..e3cec91 100644
--- a/salhelper/test/rtti/samplelibrtti.cxx
+++ b/salhelper/test/rtti/samplelibrtti.cxx
@@ -16,10 +16,6 @@ void MyClassA::funcC()
{
}
-void MyClassA::funcD()
-{
-}
-
// MyClassB ===============================================================
void MyClassB::funcA()
{
@@ -35,8 +31,4 @@ void MyClassB::funcC()
{
}
-void MyClassB::funcD()
-{
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/salhelper/test/rtti/samplelibrtti.hxx b/salhelper/test/rtti/samplelibrtti.hxx
index 8e94355..dd6a870 100644
--- a/salhelper/test/rtti/samplelibrtti.hxx
+++ b/salhelper/test/rtti/samplelibrtti.hxx
@@ -9,8 +9,6 @@ public:
virtual void funcB();
protected:
virtual void funcC();
-private:
- virtual void funcD();
};
@@ -21,9 +19,6 @@ public:
virtual void funcB();
protected:
virtual void funcC();
-private:
- virtual void funcD();
-
};
#endif
diff --git a/salhelper/test/rtti/sols.map b/salhelper/test/rtti/sols.map
index babf2c9..aa778d4 100644
--- a/salhelper/test/rtti/sols.map
+++ b/salhelper/test/rtti/sols.map
@@ -7,12 +7,10 @@ _init;
__1cIMyClassAFfuncA6M_v_;
__1cIMyClassAFfuncB6M_v_;
__1cIMyClassAFfuncC6M_v_;
-__1cIMyClassAFfuncD6M_v_;
__1cIMyClassAG__vtbl_;
__1cIMyClassBFfuncA6M_v_;
__1cIMyClassBFfuncB6M_v_;
__1cIMyClassBFfuncC6M_v_;
-__1cIMyClassBFfuncD6M_v_;
__1cIMyClassBG__vtbl_;
__RTTI__1CpknIMyClassA_;
__RTTI__1CpknIMyClassB_;
More information about the Libreoffice-commits
mailing list