summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-22 23:19:05 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-22 23:21:18 +0200
commitb09b5f8f7cfd2d7f3125dab93ebe996c160e1e0c (patch)
treedacb87512726af1941d0c6b072d0b3626335cc4c /cui
parent87c1aa16a95dcff9247ae12a4bb5ea2d866b1772 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part19
Change-Id: Iab50c52a132c90389992ef68c2d31df95a193ab9
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/scriptdlg.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx
index 7e7349755e9d..f40016db34e7 100644
--- a/cui/source/dialogs/scriptdlg.cxx
+++ b/cui/source/dialogs/scriptdlg.cxx
@@ -1404,18 +1404,18 @@ OUString GetErrorMessage( const Exception& e )
OUString GetErrorMessage( const com::sun::star::uno::Any& aException )
{
if ( aException.getValueType() ==
- ::getCppuType( (const reflection::InvocationTargetException* ) NULL ) )
+ cppu::UnoType<reflection::InvocationTargetException>::get())
{
reflection::InvocationTargetException ite;
aException >>= ite;
- if ( ite.TargetException.getValueType() == ::getCppuType( ( const provider::ScriptErrorRaisedException* ) NULL ) )
+ if ( ite.TargetException.getValueType() == cppu::UnoType<provider::ScriptErrorRaisedException>::get())
{
// Error raised by script
provider::ScriptErrorRaisedException scriptError;
ite.TargetException >>= scriptError;
return GetErrorMessage( scriptError );
}
- else if ( ite.TargetException.getValueType() == ::getCppuType( ( const provider::ScriptExceptionRaisedException* ) NULL ) )
+ else if ( ite.TargetException.getValueType() == cppu::UnoType<provider::ScriptExceptionRaisedException>::get())
{
// Exception raised by script
provider::ScriptExceptionRaisedException scriptException;
@@ -1429,7 +1429,7 @@ OUString GetErrorMessage( const com::sun::star::uno::Any& aException )
}
}
- else if ( aException.getValueType() == ::getCppuType( ( const provider::ScriptFrameworkErrorException* ) NULL ) )
+ else if ( aException.getValueType() == cppu::UnoType<provider::ScriptFrameworkErrorException>::get())
{
// A Script Framework error has occurred
provider::ScriptFrameworkErrorException sfe;