From 10f2af6f784becb65eb9a70cdf6cb553d685af06 Mon Sep 17 00:00:00 2001
From: Jens-Heiner Rechtien
Date: Mon, 19 Jun 2006 09:28:40 +0000
Subject: [PATCH] INTEGRATION: CWS warnings01 (1.12.2); FILE MERGED 2005/11/09
20:54:23 sb 1.12.2.1: #i53898# Avoid warnings about name hiding from template
code, when instantiated for certain class arguments.
---
cppuhelper/inc/cppuhelper/compbase1.hxx | 16 ++++++++++++++--
cppuhelper/inc/cppuhelper/compbase10.hxx | 16 ++++++++++++++--
cppuhelper/inc/cppuhelper/compbase11.hxx | 16 ++++++++++++++--
3 files changed, 42 insertions(+), 6 deletions(-)
diff --git a/cppuhelper/inc/cppuhelper/compbase1.hxx b/cppuhelper/inc/cppuhelper/compbase1.hxx
index 91d3a5c0c4d6..d054d74994fe 100644
--- a/cppuhelper/inc/cppuhelper/compbase1.hxx
+++ b/cppuhelper/inc/cppuhelper/compbase1.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: compbase1.hxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: hr $ $Date: 2005-10-27 17:13:40 $
+ * last change: $Author: hr $ $Date: 2006-06-19 10:28:17 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -48,6 +48,13 @@ __DEF_COMPIMPLHELPER_EX( 1 )
namespace cppu
{
+
+// Suppress warnings about hidden functions in case any of the IfcN has
+// functions named dispose, addEventListener, or removeEventListener:
+#if defined __SUNPRO_CC
+#pragma disable_warn
+#endif
+
/** Implementation helper supporting ::com::sun::star::lang::XTypeProvider and
::com::sun::star::lang::XComponent.
@@ -91,6 +98,11 @@ namespace cppu
virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException)
{ return ImplHelper_getImplementationId( cd::get() ); }
};
+
+#if defined __SUNPRO_CC
+#pragma enable_warn
+#endif
+
/** Implementation helper supporting ::com::sun::star::lang::XTypeProvider and
::com::sun::star::lang::XComponent.
diff --git a/cppuhelper/inc/cppuhelper/compbase10.hxx b/cppuhelper/inc/cppuhelper/compbase10.hxx
index 3c995d00efab..7a6e0909d228 100644
--- a/cppuhelper/inc/cppuhelper/compbase10.hxx
+++ b/cppuhelper/inc/cppuhelper/compbase10.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: compbase10.hxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: hr $ $Date: 2005-10-27 17:13:59 $
+ * last change: $Author: hr $ $Date: 2006-06-19 10:28:29 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -48,6 +48,13 @@ __DEF_COMPIMPLHELPER_EX( 10 )
namespace cppu
{
+
+// Suppress warnings about hidden functions in case any of the IfcN has
+// functions named dispose, addEventListener, or removeEventListener:
+#if defined __SUNPRO_CC
+#pragma disable_warn
+#endif
+
/** Implementation helper supporting ::com::sun::star::lang::XTypeProvider and
::com::sun::star::lang::XComponent.
@@ -91,6 +98,11 @@ namespace cppu
virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException)
{ return ImplHelper_getImplementationId( cd::get() ); }
};
+
+#if defined __SUNPRO_CC
+#pragma enable_warn
+#endif
+
/** Implementation helper supporting ::com::sun::star::lang::XTypeProvider and
::com::sun::star::lang::XComponent.
diff --git a/cppuhelper/inc/cppuhelper/compbase11.hxx b/cppuhelper/inc/cppuhelper/compbase11.hxx
index 15a74941d695..2b0f5bc927d6 100644
--- a/cppuhelper/inc/cppuhelper/compbase11.hxx
+++ b/cppuhelper/inc/cppuhelper/compbase11.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: compbase11.hxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: hr $ $Date: 2005-10-27 17:14:16 $
+ * last change: $Author: hr $ $Date: 2006-06-19 10:28:40 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -48,6 +48,13 @@ __DEF_COMPIMPLHELPER_EX( 11 )
namespace cppu
{
+
+// Suppress warnings about hidden functions in case any of the IfcN has
+// functions named dispose, addEventListener, or removeEventListener:
+#if defined __SUNPRO_CC
+#pragma disable_warn
+#endif
+
/** Implementation helper supporting ::com::sun::star::lang::XTypeProvider and
::com::sun::star::lang::XComponent.
@@ -91,6 +98,11 @@ namespace cppu
virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException)
{ return ImplHelper_getImplementationId( cd::get() ); }
};
+
+#if defined __SUNPRO_CC
+#pragma enable_warn
+#endif
+
/** Implementation helper supporting ::com::sun::star::lang::XTypeProvider and
::com::sun::star::lang::XComponent.