From c6178d0403c7ec733a7c90e9443b301af6882c41 Mon Sep 17 00:00:00 2001 From: Gert Faller Date: Wed, 10 Nov 2010 14:43:14 +0100 Subject: RTL_CONSTASCII_USTRINGPARAM in libs-core --- vbahelper/inc/vbahelper/vbacollectionimpl.hxx | 4 ++-- vbahelper/inc/vbahelper/vbapropvalue.hxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'vbahelper/inc') diff --git a/vbahelper/inc/vbahelper/vbacollectionimpl.hxx b/vbahelper/inc/vbahelper/vbacollectionimpl.hxx index 0674ed1a7984..69020d373e3f 100644 --- a/vbahelper/inc/vbahelper/vbacollectionimpl.hxx +++ b/vbahelper/inc/vbahelper/vbacollectionimpl.hxx @@ -305,8 +305,8 @@ public: if ( ( Index1 >>= nIndex ) != sal_True ) { rtl::OUString message; - message = rtl::OUString::createFromAscii( - "Couldn't convert index to Int32"); + message = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "Couldn't convert index to Int32")); throw css::lang::IndexOutOfBoundsException( message, css::uno::Reference< css::uno::XInterface >() ); } diff --git a/vbahelper/inc/vbahelper/vbapropvalue.hxx b/vbahelper/inc/vbahelper/vbapropvalue.hxx index f48e034b0eec..70e4c3aff2a9 100644 --- a/vbahelper/inc/vbahelper/vbapropvalue.hxx +++ b/vbahelper/inc/vbahelper/vbapropvalue.hxx @@ -52,7 +52,7 @@ public: virtual css::uno::Any SAL_CALL getValue() throw (css::uno::RuntimeException); virtual void SAL_CALL setValue( const css::uno::Any& _value ) throw (css::uno::RuntimeException); - rtl::OUString SAL_CALL getDefaultPropertyName() throw (css::uno::RuntimeException) { return ::rtl::OUString::createFromAscii("Value"); } + rtl::OUString SAL_CALL getDefaultPropertyName() throw (css::uno::RuntimeException) { return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Value")); } }; #endif //SC_VBA_PROPVALULE_HXX -- cgit