summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-06 13:25:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-06 16:35:48 +0000
commit2790ad95964173b30e70c67a766683c058ce8adb (patch)
tree85f3be2ab3ca14c3b60b31f4bde645bc31f75bd9
parent5d4f20a09ff53cbd0cbadbcc063eee5b576d7339 (diff)
coverity#738679 Uninitialized scalar field
Change-Id: Idfec68c208403db08cee7b1b6930b336e532055b
-rw-r--r--lotuswordpro/source/filter/LotusWordProImportFilter.cxx1
-rw-r--r--lotuswordpro/source/filter/LotusWordProImportFilter.hxx11
2 files changed, 3 insertions, 9 deletions
diff --git a/lotuswordpro/source/filter/LotusWordProImportFilter.cxx b/lotuswordpro/source/filter/LotusWordProImportFilter.cxx
index 5e028d2f0803..72bbf748b490 100644
--- a/lotuswordpro/source/filter/LotusWordProImportFilter.cxx
+++ b/lotuswordpro/source/filter/LotusWordProImportFilter.cxx
@@ -274,7 +274,6 @@ void SAL_CALL LotusWordProImportFilter::cancel( )
void SAL_CALL LotusWordProImportFilter::setTargetDocument( const uno::Reference< ::com::sun::star::lang::XComponent >& xDoc )
throw (::com::sun::star::lang::IllegalArgumentException, RuntimeException, std::exception)
{
- meType = FILTER_IMPORT;
mxDoc = xDoc;
}
diff --git a/lotuswordpro/source/filter/LotusWordProImportFilter.hxx b/lotuswordpro/source/filter/LotusWordProImportFilter.hxx
index 9e014144b966..b0f23e2ae4fd 100644
--- a/lotuswordpro/source/filter/LotusWordProImportFilter.hxx
+++ b/lotuswordpro/source/filter/LotusWordProImportFilter.hxx
@@ -29,11 +29,6 @@
#include <cppuhelper/implbase5.hxx>
#include <rtl/ustrbuf.hxx>
-enum FilterType
-{
- FILTER_IMPORT,
- FILTER_EXPORT
-};
/* This component will be instantiated for both import or export. Whether it calls
* setSourceDocument or setTargetDocument determines which Impl function the filter
* member calls */
@@ -55,14 +50,14 @@ protected:
OUString msFilterName;
::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > mxHandler;
- FilterType meType;
-
sal_Bool SAL_CALL importImpl( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aDescriptor )
throw (::com::sun::star::uno::RuntimeException);
public:
LotusWordProImportFilter( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &rxContext)
- : mxContext( rxContext ) {}
+ : mxContext( rxContext )
+ {
+ }
virtual ~LotusWordProImportFilter() {}
// XFilter