diff options
author | Kurt Zenker <kz@openoffice.org> | 2007-10-09 14:20:00 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2007-10-09 14:20:00 +0000 |
commit | 51417b744bcd5c8643cf3fe620499dc77f6cbc87 (patch) | |
tree | 202486b205541745418a33878dd340bc0b7e9b12 /cppu | |
parent | ec87d510885cb6c38b5cb1a05fd94326c5c7b825 (diff) |
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.cxx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/cppu/source/cppu/cppu_opt.cxx b/cppu/source/cppu/cppu_opt.cxx index 13e5783b1..a1a7d6985 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 ) |