diff options
author | Daniel Rentz [dr] <daniel.rentz@oracle.com> | 2010-11-08 16:21:47 +0100 |
---|---|---|
committer | Daniel Rentz [dr] <daniel.rentz@oracle.com> | 2010-11-08 16:21:47 +0100 |
commit | bf9cd246dc431e20181cfec8107e3b7c59866281 (patch) | |
tree | 493a65c5392452153a6aed02e0495caa8e33a9a6 | |
parent | 6cafb68322fa85a54a6fa1ca47239af459f519ce (diff) |
dr77: unx compiler warnings
-rw-r--r-- | oox/source/core/xmlfilterbase.cxx | 2 | ||||
-rw-r--r-- | oox/source/docprop/ooxmldocpropimport.cxx | 1 | ||||
-rwxr-xr-x | oox/source/token/namespacemap.cxx | 2 | ||||
-rwxr-xr-x | oox/source/xls/autofilterbuffer.cxx | 2 | ||||
-rw-r--r-- | oox/source/xls/drawingfragment.cxx | 1 | ||||
-rw-r--r-- | oox/source/xls/excelfilter.cxx | 2 |
6 files changed, 3 insertions, 7 deletions
diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx index f678bb17b1b2..fe13d9322346 100644 --- a/oox/source/core/xmlfilterbase.cxx +++ b/oox/source/core/xmlfilterbase.cxx @@ -97,7 +97,7 @@ struct XmlFilterBaseImpl // ---------------------------------------------------------------------------- -XmlFilterBaseImpl::XmlFilterBaseImpl( const Reference< XComponentContext >& rxContext ) : +XmlFilterBaseImpl::XmlFilterBaseImpl( const Reference< XComponentContext >& rxContext ) throw( RuntimeException ) : maFastParser( rxContext ), maBinSuffix( CREATE_OUSTRING( ".bin" ) ), maVmlSuffix( CREATE_OUSTRING( ".vml" ) ) diff --git a/oox/source/docprop/ooxmldocpropimport.cxx b/oox/source/docprop/ooxmldocpropimport.cxx index 794950e0fbf3..26e26daad3ad 100644 --- a/oox/source/docprop/ooxmldocpropimport.cxx +++ b/oox/source/docprop/ooxmldocpropimport.cxx @@ -83,7 +83,6 @@ Sequence< InputSource > lclGetRelatedStreams( const Reference< XStorage >& rxSto Sequence< Sequence< StringPair > > aPropsInfo = xRelation->getRelationshipsByType( rStreamType ); - sal_Int32 nLength = 0; ::std::vector< InputSource > aResult; for( sal_Int32 nIndex = 0, nLength = aPropsInfo.getLength(); nIndex < nLength; ++nIndex ) diff --git a/oox/source/token/namespacemap.cxx b/oox/source/token/namespacemap.cxx index 6d5e437f5b31..0f4373d2dc59 100755 --- a/oox/source/token/namespacemap.cxx +++ b/oox/source/token/namespacemap.cxx @@ -33,7 +33,7 @@ namespace oox { NamespaceMap::NamespaceMap() { - static const struct NamespaceUrl { sal_Int32 mnId; sal_Char* mpcUrl; } spNamespaceUrls[] = + static const struct NamespaceUrl { sal_Int32 mnId; const sal_Char* mpcUrl; } spNamespaceUrls[] = { // include auto-generated C array with namespace URLs as C strings #include "namespacenames.inc" diff --git a/oox/source/xls/autofilterbuffer.cxx b/oox/source/xls/autofilterbuffer.cxx index 9017fefa9e9c..edee85dc3583 100755 --- a/oox/source/xls/autofilterbuffer.cxx +++ b/oox/source/xls/autofilterbuffer.cxx @@ -574,7 +574,7 @@ ApiFilterSettings CustomFilter::finalizeImport( sal_Int32 /*nMaxCount*/ ) else if( aIt->maValue.has< double >() ) { // floating-point argument - double fValue; + double fValue = 0.0; aIt->maValue >>= fValue; aSettings.appendField( mbAnd, nOperator, fValue ); } diff --git a/oox/source/xls/drawingfragment.cxx b/oox/source/xls/drawingfragment.cxx index 5ba60ffeb4d3..e50883ec4fbc 100644 --- a/oox/source/xls/drawingfragment.cxx +++ b/oox/source/xls/drawingfragment.cxx @@ -776,7 +776,6 @@ Reference< XShape > VmlDrawing::createAndInsertClientXShape( const ::oox::vml::S if( (aShapeName.getLength() > 0) && pClientData ) { Rectangle aShapeRect = rShapeRect; - const GraphicHelper& rGraphicHelper = getBaseFilter().getGraphicHelper(); const ::oox::vml::TextBox* pTextBox = rShape.getTextBox(); EmbeddedControl aControl( aShapeName ); switch( pClientData->mnObjType ) diff --git a/oox/source/xls/excelfilter.cxx b/oox/source/xls/excelfilter.cxx index 13d4cbd14fcc..aeac1494c338 100644 --- a/oox/source/xls/excelfilter.cxx +++ b/oox/source/xls/excelfilter.cxx @@ -278,8 +278,6 @@ ExcelVbaProjectFilter::ExcelVbaProjectFilter( const Reference< XComponentContext bool ExcelVbaProjectFilter::importDocument() throw() { - bool bRet = false; - // detect BIFF version and workbook stream name OUString aWorkbookName; BiffType eBiff = BiffDetector::detectStorageBiffVersion( aWorkbookName, getStorage() ); |