diff options
author | Andre Fischer <af@apache.org> | 2014-03-10 12:56:47 +0000 |
---|---|---|
committer | Andre Fischer <af@apache.org> | 2014-03-10 12:56:47 +0000 |
commit | 7bcecbe55bf6f1b6fd81519ee49f5bdc0e2f22a8 (patch) | |
tree | 042258bfc72ca49ef675b307506d25904e15d39a /sc | |
parent | 5976126939502bbec48eafbb0e38a823e7da1d10 (diff) |
i124361: Removed some warnings from sc.
Notes
Notes:
ignore: fixed
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/addincol.cxx | 1 | ||||
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/excel/xistyle.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/excel/xlpivot.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 1 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlimprt.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleTableBase.cxx | 3 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh5.cxx | 2 |
8 files changed, 2 insertions, 12 deletions
diff --git a/sc/source/core/tool/addincol.cxx b/sc/source/core/tool/addincol.cxx index de34f99140e2..c986878781f2 100644 --- a/sc/source/core/tool/addincol.cxx +++ b/sc/source/core/tool/addincol.cxx @@ -752,7 +752,6 @@ sal_Bool lcl_ValidReturnType( const uno::Reference<reflection::XIdlClass>& xClas IsTypeName( sName, getCppuType((uno::Sequence< uno::Sequence<uno::Any> >*)0) ) ); } } - return sal_False; } ScAddInArgumentType lcl_GetArgType( const uno::Reference<reflection::XIdlClass>& xClass ) diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index b7a92415b7bb..23be39911a7a 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -7681,7 +7681,7 @@ bool IsDBCS(sal_Unicode ch) } sal_Int32 getLengthB(String &str) { - sal_Int32 index = 0; + xub_StrLen index = 0; sal_Int32 length = 0; if(0 == str.Len()) return 0; diff --git a/sc/source/filter/excel/xistyle.cxx b/sc/source/filter/excel/xistyle.cxx index 568c51d3d042..d1475f333b34 100644 --- a/sc/source/filter/excel/xistyle.cxx +++ b/sc/source/filter/excel/xistyle.cxx @@ -1247,7 +1247,7 @@ void XclImpXF::ApplyPattern( } } -void XclImpXF::Notify(SfxBroadcaster& rBC, const SfxHint& rHint ) +void XclImpXF::Notify(SfxBroadcaster& /* rBC */, const SfxHint& /* rHint */ ) { mpPooledPattern = 0; } diff --git a/sc/source/filter/excel/xlpivot.cxx b/sc/source/filter/excel/xlpivot.cxx index 50364f85f5fe..08c085ecd478 100644 --- a/sc/source/filter/excel/xlpivot.cxx +++ b/sc/source/filter/excel/xlpivot.cxx @@ -194,8 +194,6 @@ const String* XclPCItem::GetItemName() const else return this->GetText(); } - - return NULL; } diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index 26d1c3fb0b5b..cdc45fe68b2c 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -4615,7 +4615,6 @@ void SAL_CALL ScXMLExport::initialize( const ::com::sun::star::uno::Sequence< :: return ScXMLOOoExport_getImplementationName(); } } - return SvXMLExport::getImplementationName(); } sal_Bool SAL_CALL ScXMLExport::supportsService( const ::rtl::OUString& ServiceName ) diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx index 921305eb3149..fd0150fc30c7 100644 --- a/sc/source/filter/xml/xmlimprt.cxx +++ b/sc/source/filter/xml/xmlimprt.cxx @@ -2604,7 +2604,6 @@ throw(::com::sun::star::uno::RuntimeException) // generic name for 'unknown' cases return ScXMLImport_getImplementationName(); } - return SvXMLImport::getImplementationName(); } // ::com::sun::star::xml::sax::XDocumentHandler diff --git a/sc/source/ui/Accessibility/AccessibleTableBase.cxx b/sc/source/ui/Accessibility/AccessibleTableBase.cxx index b1a6aa9af190..53b9c9d61ff2 100644 --- a/sc/source/ui/Accessibility/AccessibleTableBase.cxx +++ b/sc/source/ui/Accessibility/AccessibleTableBase.cxx @@ -77,8 +77,6 @@ void SAL_CALL ScAccessibleTableBase::disposing() uno::Any SAL_CALL ScAccessibleTableBase::queryInterface( uno::Type const & rType ) throw (uno::RuntimeException) { - //uno::Any aAny (ScAccessibleTableBaseImpl::queryInterface(rType)); - //return aAny.hasValue() ? aAny : ScAccessibleContextBase::queryInterface(rType); uno::Any aRet; if ( rType == ::getCppuType((uno::Reference<XAccessibleTableSelection> *)0) ) { @@ -91,7 +89,6 @@ uno::Any SAL_CALL ScAccessibleTableBase::queryInterface( uno::Type const & rType uno::Any aAny (ScAccessibleTableBaseImpl::queryInterface(rType)); return aAny.hasValue() ? aAny : ScAccessibleContextBase::queryInterface(rType); } - return aRet; } void SAL_CALL ScAccessibleTableBase::acquire() diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx index 6f2129b0377a..9f37ade58138 100644 --- a/sc/source/ui/docshell/docsh5.cxx +++ b/sc/source/ui/docshell/docsh5.cxx @@ -390,8 +390,6 @@ ScDBData* ScDocShell::GetDBData( const ScRange& rMarked, ScGetDBMode eMode, ScGe return pDBData; } - - return NULL; // never reached } |