summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-22 17:57:48 +0100
committerNoel Grandin <noelgrandin@gmail.com>2014-12-23 05:53:41 +0000
commitea644f0e90d0c9585e73bdec240908803a38d4a6 (patch)
treedf140769eaf45d4205d4ac50147809597e3e6d73 /shell
parenta6c0583675b6fe4210ae8249728fe5d4df125f5c (diff)
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: I404f121ee2e5020359a662f54ffe341f466cd1d5 Reviewed-on: https://gerrit.libreoffice.org/13608 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/source/backends/gconfbe/gconfaccess.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/source/backends/gconfbe/gconfaccess.cxx b/shell/source/backends/gconfbe/gconfaccess.cxx
index 1b30545fc840..bd419c9bff62 100644
--- a/shell/source/backends/gconfbe/gconfaccess.cxx
+++ b/shell/source/backends/gconfbe/gconfaccess.cxx
@@ -820,10 +820,9 @@ std::size_t const nConfigurationValues =
css::beans::Optional< css::uno::Any > getValue(ConfigurationValue const & data)
{
GConfClient* pClient = getGconfClient();
- GConfValue* pGconfValue;
if( ( data.nDependsOn == SETTINGS_LAST ) || isDependencySatisfied( pClient, data ) )
{
- pGconfValue = gconf_client_get( pClient, data.GconfItem, NULL );
+ GConfValue* pGconfValue = gconf_client_get( pClient, data.GconfItem, NULL );
if( pGconfValue != NULL )
{