summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-11 10:09:04 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-11 10:16:42 +0200
commitbd596286207adf06936939a3ef8018efc1055591 (patch)
treedc8e079155868ffbc5d023f04620c83f402dc6c2 /scripting
parentbe44f0e91b6061f6bbe6b4da2f264eed70fb6542 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part10
Change-Id: I67acda35fa127547dcea0cd18c9dc16db7c00294
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/provider/URIHelper.cxx4
-rw-r--r--scripting/source/vbaevents/eventhelper.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/scripting/source/provider/URIHelper.cxx b/scripting/source/provider/URIHelper.cxx
index b6f1103986c4..b0a52049835a 100644
--- a/scripting/source/provider/URIHelper.cxx
+++ b/scripting/source/provider/URIHelper.cxx
@@ -86,8 +86,8 @@ ScriptingFrameworkURIHelper::initialize(
throw ( uno::Exception, uno::RuntimeException, std::exception )
{
if ( args.getLength() != 2 ||
- args[0].getValueType() != ::getCppuType((const OUString*)NULL) ||
- args[1].getValueType() != ::getCppuType((const OUString*)NULL) )
+ args[0].getValueType() != ::cppu::UnoType<OUString>::get()NULL) ||
+ args[1].getValueType() != ::cppu::UnoType<OUString>::get()NULL) )
{
throw uno::RuntimeException( OUString(
"ScriptingFrameworkURIHelper got invalid argument list" ),
diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx
index 0a4f35dcc269..6a3a1df73987 100644
--- a/scripting/source/vbaevents/eventhelper.cxx
+++ b/scripting/source/vbaevents/eventhelper.cxx
@@ -493,7 +493,7 @@ public:
// XElementAccess
virtual Type SAL_CALL getElementType( ) throw (RuntimeException, std::exception) SAL_OVERRIDE
- { return getCppuType(static_cast< const OUString * >(0) ); }
+ { return cppu::UnoType<OUString>::get(); }
virtual sal_Bool SAL_CALL hasElements( ) throw (RuntimeException, std::exception) SAL_OVERRIDE
{ return ( ( m_hEvents.size() > 0 ? sal_True : sal_False ) ); }
private: