diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-13 15:16:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-13 20:11:48 +0200 |
commit | df4b0ba2f631e2a99d72011e58ac5e81fbc1dec5 (patch) | |
tree | e5bcefcb888f5db573789262319e9ac2647e8204 /stoc/source/corereflection/criface.cxx | |
parent | a9cf09844ee35610cbf102895014a7f03f8de100 (diff) |
loplugin:ostr in stoc
Change-Id: I638b1e12781264770ce742d3303693e3b7fa82c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167597
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'stoc/source/corereflection/criface.cxx')
-rw-r--r-- | stoc/source/corereflection/criface.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/stoc/source/corereflection/criface.cxx b/stoc/source/corereflection/criface.cxx index 130ff546e278..7b35020fb67f 100644 --- a/stoc/source/corereflection/criface.cxx +++ b/stoc/source/corereflection/criface.cxx @@ -150,7 +150,7 @@ Any IdlAttributeFieldImpl::get( const Any & rObj ) return aRet; } throw IllegalArgumentException( - "illegal object given!", + u"illegal object given!"_ustr, getXWeak(), 0 ); } @@ -159,7 +159,7 @@ void IdlAttributeFieldImpl::set( Any & rObj, const Any & rValue ) if (getAttributeTypeDescr()->bReadOnly) { throw IllegalAccessException( - "cannot set readonly attribute!", + u"cannot set readonly attribute!"_ustr, getXWeak() ); } @@ -232,11 +232,11 @@ void IdlAttributeFieldImpl::set( Any & rObj, const Any & rValue ) (*pUnoI->release)( pUnoI ); throw IllegalArgumentException( - "illegal value given!", + u"illegal value given!"_ustr, *o3tl::doAccess<Reference<XInterface>>(rObj), 1 ); } throw IllegalArgumentException( - "illegal destination object given!", + u"illegal destination object given!"_ustr, getXWeak(), 0 ); } @@ -261,8 +261,8 @@ void IdlAttributeFieldImpl::checkException( cppu::UnoType<RuntimeException>::get())) { throw WrappedTargetRuntimeException( - "non-RuntimeException occurred when accessing an" - " interface type attribute", + u"non-RuntimeException occurred when accessing an" + " interface type attribute"_ustr, context, e); } cppu::throwException(e); @@ -609,7 +609,7 @@ Any SAL_CALL IdlInterfaceMethodImpl::invoke( const Any & rObj, Sequence< Any > & uno_type_copyAndConvertData(&aRet, pUnoExc, cppu::UnoType<Any>::get().getTypeLibType(), getReflection()->getUno2Cpp().get() ); uno_any_destruct( pUnoExc, nullptr ); - throw InvocationTargetException("exception occurred during invocation!", + throw InvocationTargetException(u"exception occurred during invocation!"_ustr, *o3tl::doAccess<Reference<XInterface>>(rObj), aRet); } else @@ -640,7 +640,7 @@ Any SAL_CALL IdlInterfaceMethodImpl::invoke( const Any & rObj, Sequence< Any > & return aRet; } throw IllegalArgumentException( - "illegal destination object given!", + u"illegal destination object given!"_ustr, getXWeak(), 0 ); } |