Author: af
Date: Mon Mar 10 12:56:47 2014
New Revision: 1575927

URL: http://svn.apache.org/r1575927
Log:
i124361: Removed some warnings from sc.

Modified:
    openoffice/trunk/main/sc/source/core/tool/addincol.cxx
    openoffice/trunk/main/sc/source/core/tool/interpr1.cxx
    openoffice/trunk/main/sc/source/filter/excel/xistyle.cxx
    openoffice/trunk/main/sc/source/filter/excel/xlpivot.cxx
    openoffice/trunk/main/sc/source/filter/xml/xmlexprt.cxx
    openoffice/trunk/main/sc/source/filter/xml/xmlimprt.cxx
    openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleTableBase.cxx
    openoffice/trunk/main/sc/source/ui/docshell/docsh5.cxx

Modified: openoffice/trunk/main/sc/source/core/tool/addincol.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/core/tool/addincol.cxx?rev=1575927&r1=1575926&r2=1575927&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/core/tool/addincol.cxx (original)
+++ openoffice/trunk/main/sc/source/core/tool/addincol.cxx Mon Mar 10 12:56:47 
2014
@@ -752,7 +752,6 @@ sal_Bool lcl_ValidReturnType( const uno:
                     IsTypeName( sName, getCppuType((uno::Sequence< 
uno::Sequence<uno::Any> >*)0) ) );
             }
     }
-    return sal_False;
 }
 
 ScAddInArgumentType lcl_GetArgType( const 
uno::Reference<reflection::XIdlClass>& xClass )

Modified: openoffice/trunk/main/sc/source/core/tool/interpr1.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/core/tool/interpr1.cxx?rev=1575927&r1=1575926&r2=1575927&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/core/tool/interpr1.cxx (original)
+++ openoffice/trunk/main/sc/source/core/tool/interpr1.cxx Mon Mar 10 12:56:47 
2014
@@ -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;

Modified: openoffice/trunk/main/sc/source/filter/excel/xistyle.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/filter/excel/xistyle.cxx?rev=1575927&r1=1575926&r2=1575927&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/filter/excel/xistyle.cxx (original)
+++ openoffice/trunk/main/sc/source/filter/excel/xistyle.cxx Mon Mar 10 
12:56:47 2014
@@ -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;
 }

Modified: openoffice/trunk/main/sc/source/filter/excel/xlpivot.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/filter/excel/xlpivot.cxx?rev=1575927&r1=1575926&r2=1575927&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/filter/excel/xlpivot.cxx (original)
+++ openoffice/trunk/main/sc/source/filter/excel/xlpivot.cxx Mon Mar 10 
12:56:47 2014
@@ -194,8 +194,6 @@ const String* XclPCItem::GetItemName() c
         else
             return this->GetText();
     }
-
-    return NULL;
 }
 
 

Modified: openoffice/trunk/main/sc/source/filter/xml/xmlexprt.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/filter/xml/xmlexprt.cxx?rev=1575927&r1=1575926&r2=1575927&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/filter/xml/xmlexprt.cxx (original)
+++ openoffice/trunk/main/sc/source/filter/xml/xmlexprt.cxx Mon Mar 10 12:56:47 
2014
@@ -4615,7 +4615,6 @@ void SAL_CALL ScXMLExport::initialize( c
                 return ScXMLOOoExport_getImplementationName();
         }
     }
-       return SvXMLExport::getImplementationName();
 }
 
 sal_Bool SAL_CALL ScXMLExport::supportsService( const ::rtl::OUString& 
ServiceName )

Modified: openoffice/trunk/main/sc/source/filter/xml/xmlimprt.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/filter/xml/xmlimprt.cxx?rev=1575927&r1=1575926&r2=1575927&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/filter/xml/xmlimprt.cxx (original)
+++ openoffice/trunk/main/sc/source/filter/xml/xmlimprt.cxx Mon Mar 10 12:56:47 
2014
@@ -2604,7 +2604,6 @@ throw(::com::sun::star::uno::RuntimeExce
         // generic name for 'unknown' cases
         return ScXMLImport_getImplementationName();
     }
-    return SvXMLImport::getImplementationName();
 }
 
 // ::com::sun::star::xml::sax::XDocumentHandler

Modified: 
openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleTableBase.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleTableBase.cxx?rev=1575927&r1=1575926&r2=1575927&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleTableBase.cxx 
(original)
+++ openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleTableBase.cxx 
Mon Mar 10 12:56:47 2014
@@ -77,8 +77,6 @@ void SAL_CALL ScAccessibleTableBase::dis
 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:
                uno::Any aAny 
(ScAccessibleTableBaseImpl::queryInterface(rType));
                return aAny.hasValue() ? aAny : 
ScAccessibleContextBase::queryInterface(rType);
        }
-       return aRet;
 }
 
 void SAL_CALL ScAccessibleTableBase::acquire()

Modified: openoffice/trunk/main/sc/source/ui/docshell/docsh5.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/ui/docshell/docsh5.cxx?rev=1575927&r1=1575926&r2=1575927&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/ui/docshell/docsh5.cxx (original)
+++ openoffice/trunk/main/sc/source/ui/docshell/docsh5.cxx Mon Mar 10 12:56:47 
2014
@@ -390,8 +390,6 @@ ScDBData* ScDocShell::GetDBData( const S
 
         return pDBData;
     }
-
-    return NULL; // never reached
 }
 
 


Reply via email to