summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-23 12:03:21 +0200
committerNoel Grandin <noel@peralex.com>2014-05-23 15:06:00 +0200
commite7bc3cab019fbf040f9fb8b53ae2cf3f977d200b (patch)
treebc507bccee9fb71134e362b72d22991561e32aa0 /xmlscript
parentc5d47c327a57df55fa3dac0fff6b65888d0345e4 (diff)
remove boilerplate in UNO Exception constructor calls
Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xml_helper/xml_impctx.cxx2
-rw-r--r--xmlscript/source/xmlflat_imexp/xmlbas_export.cxx4
-rw-r--r--xmlscript/test/imexp.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx
index 617b89f1e4de..36857765e99c 100644
--- a/xmlscript/source/xml_helper/xml_impctx.cxx
+++ b/xmlscript/source/xml_helper/xml_impctx.cxx
@@ -445,7 +445,7 @@ void DocumentHandlerImpl::initialize(
}
else
{
- throw RuntimeException( "missing root instance!", Reference< XInterface >() );
+ throw RuntimeException( "missing root instance!" );
}
}
diff --git a/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx b/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx
index 65eef7ad8815..89b0e7c0b9db 100644
--- a/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx
+++ b/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx
@@ -132,12 +132,12 @@ namespace xmlscript
if ( !m_xHandler.is() )
{
- throw RuntimeException( "XMLBasicExporterBase::initialize: invalid argument format!", Reference< XInterface >() );
+ throw RuntimeException( "XMLBasicExporterBase::initialize: invalid argument format!" );
}
}
else
{
- throw RuntimeException( "XMLBasicExporterBase::initialize: invalid number of arguments!", Reference< XInterface >() );
+ throw RuntimeException( "XMLBasicExporterBase::initialize: invalid number of arguments!" );
}
}
diff --git a/xmlscript/test/imexp.cxx b/xmlscript/test/imexp.cxx
index 1edf5f6ed5f8..4a597a491522 100644
--- a/xmlscript/test/imexp.cxx
+++ b/xmlscript/test/imexp.cxx
@@ -105,7 +105,7 @@ Reference< container::XNameContainer > importFile(
}
else
{
- throw Exception( "### Cannot read file!", Reference< XInterface >() );
+ throw Exception( "### Cannot read file!" );
}
}