You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by pf...@apache.org on 2015/12/10 22:07:58 UTC
svn commit: r1719210 -
/openoffice/trunk/main/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
Author: pfg
Date: Thu Dec 10 21:07:58 2015
New Revision: 1719210
URL: http://svn.apache.org/viewvc?rev=1719210&view=rev
Log:
FreeBSD: Drop support for old EOL'd versions,
While here update some casts.
Modified:
openoffice/trunk/main/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
Modified: openoffice/trunk/main/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx?rev=1719210&r1=1719209&r2=1719210&view=diff
==============================================================================
--- openoffice/trunk/main/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx (original)
+++ openoffice/trunk/main/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx Thu Dec 10 21:07:58 2015
@@ -33,6 +33,7 @@
#include <dlfcn.h>
#include <cxxabi.h>
#include <hash_map>
+
#include <sys/param.h>
#include <rtl/strbuf.hxx>
@@ -119,11 +120,7 @@ public:
};
//__________________________________________________________________________________________________
RTTI::RTTI() SAL_THROW( () )
-#if __FreeBSD_version < 602103
- : m_hApp( dlopen( 0, RTLD_NOW | RTLD_GLOBAL ) )
-#else
: m_hApp( dlopen( 0, RTLD_LAZY ) )
-#endif
{
}
//__________________________________________________________________________________________________
@@ -158,11 +155,7 @@ type_info * RTTI::getRTTI( typelib_Compo
buf.append( 'E' );
OString symName( buf.makeStringAndClear() );
-#if __FreeBSD_version < 602103 /* #i22253# */
- rtti = (type_info *)dlsym( RTLD_DEFAULT, symName.getStr() );
-#else
- rtti = (type_info *)dlsym( m_hApp, symName.getStr() );
-#endif
+ rtti = static_cast<type_info *>(dlsym( m_hApp, symName.getStr() ));
if (rtti)
{
@@ -194,7 +187,7 @@ type_info * RTTI::getRTTI( typelib_Compo
type_info * base_rtti = getRTTI(
(typelib_CompoundTypeDescription *)pTypeDescr->pBaseTypeDescription );
rtti = new __si_class_type_info(
- strdup( rttiName ), (__class_type_info *)base_rtti );
+ strdup( rttiName ), static_cast<__class_type_info *>(base_rtti) );
}
else
{