summaryrefslogtreecommitdiff
path: root/dbaccess/source/filter/xml/xmlfilter.cxx
diff options
context:
space:
mode:
authorŁukasz Hryniuk <lukasz.hryniuk@wp.pl>2015-01-04 22:50:05 +0100
committerNoel Grandin <noelgrandin@gmail.com>2015-01-07 06:47:04 +0000
commit9fd89a5952a48b473cee03a2681eb5d4cd6d1742 (patch)
tree1fbf98ba46e86989826adf5d559f51c82d59a5e5 /dbaccess/source/filter/xml/xmlfilter.cxx
parenta527ad98e58a7fc9af482f9088687d82e5c52cca (diff)
fdo#39440 reduce scope of local variables
Beside scope changes, it fixes lack of initialization in a few places. Change-Id: Ia09fdb9845d8ac17256330a5ec5168401c84f0f2 Reviewed-on: https://gerrit.libreoffice.org/13755 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dbaccess/source/filter/xml/xmlfilter.cxx')
-rw-r--r--dbaccess/source/filter/xml/xmlfilter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/filter/xml/xmlfilter.cxx b/dbaccess/source/filter/xml/xmlfilter.cxx
index 76f8e843aea3..a47b6c8fef5d 100644
--- a/dbaccess/source/filter/xml/xmlfilter.cxx
+++ b/dbaccess/source/filter/xml/xmlfilter.cxx
@@ -306,10 +306,10 @@ sal_Int32 ReadThroughComponent(
if ( xStorage.is() )
{
uno::Reference< io::XStream > xDocStream;
- bool bEncrypted = false;
try
{
+ bool bEncrypted = false;
// open stream (and set parser input)
OUString sStreamName = OUString::createFromAscii(pStreamName);
if ( !xStorage->hasByName( sStreamName ) || !xStorage->isStreamElement( sStreamName ) )