summaryrefslogtreecommitdiff
path: root/cli_ure/source/uno_bridge
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-10-27 03:16:18 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-10-27 09:23:52 +0200
commitdc1858783e72bba808dbd87b5b03d5170449ad52 (patch)
tree5164686a8f38e64420f79b027900507d2c179a6d /cli_ure/source/uno_bridge
parent5690acdb44e8017055bb88e86e19d207836bb95c (diff)
tdf#120703 (PVS): V519 The variable is assigned values twice successively
Change-Id: I9265425a215609ef6bf4298ba39c8399f215ce27 Reviewed-on: https://gerrit.libreoffice.org/62406 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'cli_ure/source/uno_bridge')
-rw-r--r--cli_ure/source/uno_bridge/cli_environment.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli_ure/source/uno_bridge/cli_environment.cxx b/cli_ure/source/uno_bridge/cli_environment.cxx
index 2c4bdcde4129..3c054b5be870 100644
--- a/cli_ure/source/uno_bridge/cli_environment.cxx
+++ b/cli_ure/source/uno_bridge/cli_environment.cxx
@@ -117,8 +117,7 @@ System::Object^ Cli_environment::getRegisteredInterface(System::String^ oid,
System::Type^ type)
{
//try if it is a UNO interface
- System::Object^ ret = nullptr;
- ret = m_objects[oid];
+ System::Object^ ret = m_objects[oid];
if (! ret)
{
//try if it is a proxy for a cli object