summaryrefslogtreecommitdiff
path: root/pyuno/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-19 20:08:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-20 07:56:19 +0200
commit84abf28e05fc55be867028f3d3a59220ca2669f0 (patch)
treeebf1c6c90f89b4aa9a5a6b516ec89121026bfe03 /pyuno/source
parentdefdd8bebe40b48d8abc4d893ac9a82b550c5d19 (diff)
loplugin:referencecasting in oox..pyuno
Change-Id: Ie920c154aef3074016704c632b15d99110b219aa Reviewed-on: https://gerrit.libreoffice.org/75974 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'pyuno/source')
-rw-r--r--pyuno/source/module/pyuno.cxx6
-rw-r--r--pyuno/source/module/pyuno_module.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/pyuno/source/module/pyuno.cxx b/pyuno/source/module/pyuno.cxx
index e59319030eb8..d0db3674d7b3 100644
--- a/pyuno/source/module/pyuno.cxx
+++ b/pyuno/source/module/pyuno.cxx
@@ -933,7 +933,7 @@ static int lcl_setitem_index( PyUNO const *me, PyObject *pKey, PyObject *pValue
xIndexContainer.set( me->members->xInvocation, UNO_QUERY );
if ( xIndexContainer.is() )
- xIndexReplace.set( xIndexContainer, UNO_QUERY );
+ xIndexReplace = xIndexContainer;
else
xIndexReplace.set( me->members->xInvocation, UNO_QUERY );
@@ -980,7 +980,7 @@ static int lcl_setitem_slice( PyUNO const *me, PyObject *pKey, PyObject *pValue
xIndexContainer.set( me->members->xInvocation, UNO_QUERY );
if ( xIndexContainer.is() )
- xIndexReplace.set( xIndexContainer, UNO_QUERY );
+ xIndexReplace = xIndexContainer;
else
xIndexReplace.set( me->members->xInvocation, UNO_QUERY );
@@ -1114,7 +1114,7 @@ static int lcl_setitem_string( PyUNO const *me, PyObject *pKey, PyObject *pValue
Reference< XNameContainer > xNameContainer( me->members->xInvocation, UNO_QUERY );
Reference< XNameReplace > xNameReplace;
if ( xNameContainer.is() )
- xNameReplace.set( xNameContainer, UNO_QUERY );
+ xNameReplace = xNameContainer;
else
xNameReplace.set( me->members->xInvocation, UNO_QUERY );
diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx
index d088e33d616e..a6566182b546 100644
--- a/pyuno/source/module/pyuno_module.cxx
+++ b/pyuno/source/module/pyuno_module.cxx
@@ -430,7 +430,7 @@ static PyObject *createUnoStructHelper(
{
OUString typeName( OUString::createFromAscii(PyStr_AsString(structName)));
RuntimeCargo *c = runtime.getImpl()->cargo;
- Reference<XIdlClass> idl_class ( c->xCoreReflection->forName (typeName),UNO_QUERY);
+ Reference<XIdlClass> idl_class = c->xCoreReflection->forName (typeName);
if (idl_class.is ())
{
idl_class->createObject (IdlStruct);