diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2014-12-06 01:31:14 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <s.mehrbrodt@gmail.com> | 2014-12-06 14:12:31 +0000 |
commit | 93124f771062eb2917212c16a64b0a67f5baaff4 (patch) | |
tree | eb9470764cd77bc3d19ea8b8c369d71793b008a0 /basic/source/uno/namecont.cxx | |
parent | 29ef1b0aa20a5d1354b071884d830d0eec224053 (diff) |
reduce scope of local variables
This eliminates some of the warnings from Cppcheck report of
2014-11-29.
Change-Id: Ic4bf3bd8f5982d2ea2f25a28c0dd61084c59af11
Reviewed-on: https://gerrit.libreoffice.org/13331
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
Diffstat (limited to 'basic/source/uno/namecont.cxx')
-rw-r--r-- | basic/source/uno/namecont.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index d95596d7bfc5..f9a5fd50bd1f 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -1681,11 +1681,10 @@ bool SfxLibraryContainer::implLoadLibraryIndexFile( SfxLibrary* pLib, { Reference< XParser > xParser = xml::sax::Parser::create(mxContext); - bool bLink = false; bool bStorage = false; if( pLib ) { - bLink = pLib->mbLink; + bool bLink = pLib->mbLink; bStorage = xStorage.is() && !bLink; } |