summaryrefslogtreecommitdiff
path: root/xmloff/source/xforms
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-20 18:27:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-21 08:51:00 +0200
commit3284309f19bc76f1778988c5314a795a95620e71 (patch)
treef8c4cee5861bccdfc4b86bc080bf988d3fe78c9f /xmloff/source/xforms
parentf9b5657c4cff29f4a0cd65d2789e091f1297a152 (diff)
loplugin:referencecasting in xmloff
Change-Id: Iac3d56511aacec73bc38f57890c44145a4c13b85 Reviewed-on: https://gerrit.libreoffice.org/76034 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/xforms')
-rw-r--r--xmloff/source/xforms/SchemaRestrictionContext.cxx4
-rw-r--r--xmloff/source/xforms/xformsexport.cxx8
2 files changed, 4 insertions, 8 deletions
diff --git a/xmloff/source/xforms/SchemaRestrictionContext.cxx b/xmloff/source/xforms/SchemaRestrictionContext.cxx
index fcf58ce5eb2f..f295dff5e3ea 100644
--- a/xmloff/source/xforms/SchemaRestrictionContext.cxx
+++ b/xmloff/source/xforms/SchemaRestrictionContext.cxx
@@ -105,13 +105,11 @@ void SchemaRestrictionContext::CreateDataType()
try
{
mxDataType =
- Reference<XPropertySet>(
mxRepository->cloneDataType(
xforms_getBasicTypeName( mxRepository,
GetImport().GetNamespaceMap(),
msBaseName ),
- msTypeName ),
- UNO_QUERY );
+ msTypeName );
}
catch( const Exception& )
{
diff --git a/xmloff/source/xforms/xformsexport.cxx b/xmloff/source/xforms/xformsexport.cxx
index edd3b1434918..09053850c952 100644
--- a/xmloff/source/xforms/xformsexport.cxx
+++ b/xmloff/source/xforms/xformsexport.cxx
@@ -299,9 +299,8 @@ void exportXFormsBinding( SvXMLExport& rExport,
xModel.is() ? xModel->getDataTypeRepository() : Reference<XDataTypeRepository>() );
if( xRepository.is() )
{
- Reference<XPropertySet> xDataType(
- xRepository->getDataType( sTypeName ),
- UNO_QUERY );
+ Reference<XPropertySet> xDataType =
+ xRepository->getDataType( sTypeName );
// if it's a basic data type, write out the XSD name
// for the XSD type class
@@ -555,8 +554,7 @@ void exportXFormsSchemas( SvXMLExport& rExport,
true, true );
// now get data type repository, and export
- Reference<XEnumerationAccess> xTypes( xModel->getDataTypeRepository(),
- UNO_QUERY );
+ Reference<XEnumerationAccess> xTypes = xModel->getDataTypeRepository();
if( xTypes.is() )
{
Reference<XEnumeration> xEnum = xTypes->createEnumeration();