summaryrefslogtreecommitdiffstats
path: root/cppu
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2007-10-09 14:20:00 +0000
committerKurt Zenker <kz@openoffice.org>2007-10-09 14:20:00 +0000
commit58207526be1c6e7a2ed19e5e4ac0e5dd92ab4182 (patch)
tree6f084fda36a0747c92c16a24b6f96c3d5b5fb391 /cppu
parentINTEGRATION: CWS basmgr03 (1.1.2); FILE ADDED (diff)
downloadcore-58207526be1c6e7a2ed19e5e4ac0e5dd92ab4182.tar.gz
core-58207526be1c6e7a2ed19e5e4ac0e5dd92ab4182.zip
INTEGRATION: CWS basmgr03 (1.6.44); FILE MERGED
2007/07/26 08:52:07 fs 1.6.44.1: #i80044# +cppu_unsatisfied_iset_message
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/cppu/cppu_opt.cxx18
1 files changed, 16 insertions, 2 deletions
diff --git a/cppu/source/cppu/cppu_opt.cxx b/cppu/source/cppu/cppu_opt.cxx
index 13e5783b18bd..a1a7d6985a98 100644
--- a/cppu/source/cppu/cppu_opt.cxx
+++ b/cppu/source/cppu/cppu_opt.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: cppu_opt.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 00:19:04 $
+ * last change: $Author: kz $ $Date: 2007-10-09 15:20:00 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -57,6 +57,20 @@ extern "C" rtl_uString * SAL_CALL cppu_unsatisfied_iquery_msg(
return ret.pData;
}
+//##################################################################################################
+extern "C" rtl_uString * SAL_CALL cppu_unsatisfied_iset_msg(
+ typelib_TypeDescriptionReference * pType )
+ SAL_THROW_EXTERN_C()
+{
+ OUStringBuffer buf( 64 );
+ buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("invalid attempt to assign an empty interface of type ") );
+ buf.append( OUString::unacquired( &pType->pTypeName ) );
+ buf.append( (sal_Unicode) '!' );
+ OUString ret( buf.makeStringAndClear() );
+ rtl_uString_acquire( ret.pData );
+ return ret.pData;
+}
+
//##############################################################################
extern "C" rtl_uString * SAL_CALL cppu_Any_extraction_failure_msg(
uno_Any * pAny, typelib_TypeDescriptionReference * pType )