summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-12-03 15:07:18 +0200
committerTor Lillqvist <tlillqvist@suse.com>2012-12-03 15:07:42 +0200
commitd43d756500114738ac845c6e24cba8c897ed659d (patch)
tree43928341349bb4620b19bde2c3c494b6174fb02b /sfx2
parentb4d5ababc26b57d0d8688ed671825acd2c4cfc05 (diff)
WaE: BaseReference::_pInterface may be used uninitialized in this function
Change-Id: I061dc4ee8c8fb5b369e3ed78f0fba136ef8b02d0
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/doctemplates.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx
index a724dea9f236..1313fee8aa03 100644
--- a/sfx2/source/doc/doctemplates.cxx
+++ b/sfx2/source/doc/doctemplates.cxx
@@ -1857,7 +1857,9 @@ sal_Bool SfxDocTplService_Impl::storeTemplate( const OUString& rGroupName,
throw uno::RuntimeException();
// find the mediatype and extension
- uno::Reference< container::XNameAccess > xTypeDetection =
+ uno::Reference< container::XNameAccess > xTypeDetection;
+
+ xTypeDetection =
mxType.is() ?
uno::Reference< container::XNameAccess >( mxType, uno::UNO_QUERY_THROW ) :
uno::Reference< container::XNameAccess >(