diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2014-12-08 19:36:22 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-12-09 03:24:35 +0000 |
commit | 54cbb57d4c3ccf1e1c8455ac413183edbdeb3416 (patch) | |
tree | 989caae10d27ec9907b298af288ad2a4ef175622 /cli_ure/source/uno_bridge | |
parent | 141469eb831c054d6f4b56fcaa50a03e52429f11 (diff) |
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: Ib35eb591534c3f23adc3cb7b7fa9696dc5cbeabf
Reviewed-on: https://gerrit.libreoffice.org/13383
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'cli_ure/source/uno_bridge')
-rw-r--r-- | cli_ure/source/uno_bridge/cli_data.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cli_ure/source/uno_bridge/cli_data.cxx b/cli_ure/source/uno_bridge/cli_data.cxx index c1671d71a57e..3efd7a426a52 100644 --- a/cli_ure/source/uno_bridge/cli_data.cxx +++ b/cli_ure/source/uno_bridge/cli_data.cxx @@ -1058,12 +1058,10 @@ void Bridge::map_to_uno(void * uno_data, System::Object^ cli_data, sal_Int32 nPos = 0; try { - typelib_TypeDescriptionReference * member_type= NULL; - OUString usUnoException("com.sun.star.uno.Exception"); for (; nPos < nMembers; ++nPos) { - member_type= comp_td->ppTypeRefs[nPos]; + typelib_TypeDescriptionReference * member_type= comp_td->ppTypeRefs[nPos]; System::Object^ val= nullptr; if (cli_data != nullptr) { |