[Libreoffice-commits] core.git: oox/source starmath/source

Julien Nabet serval2412 at yahoo.fr
Tue Oct 29 07:54:07 CET 2013


 oox/source/drawingml/textbodycontext.cxx |    1 -
 starmath/source/unomodel.cxx             |    1 -
 2 files changed, 2 deletions(-)

New commits:
commit c5fd63966e689b55b271d2d76860ed471eacdc74
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Tue Oct 29 07:53:45 2013 +0100

    cppcheck: duplicate break or break which follows a return
    
    Change-Id: I0985d28289e31969cb9b048b221abfae1572025d

diff --git a/oox/source/drawingml/textbodycontext.cxx b/oox/source/drawingml/textbodycontext.cxx
index 415bddf..80e5657 100644
--- a/oox/source/drawingml/textbodycontext.cxx
+++ b/oox/source/drawingml/textbodycontext.cxx
@@ -134,7 +134,6 @@ ContextHandlerRef RegularTextRunContext::onCreateContext( sal_Int32 aElementToke
     {
     case A_TOKEN( rPr ):    // "CT_TextCharPropertyBag" The text char properties of this text run.
         return new TextCharacterPropertiesContext( *this, rAttribs, mpRunPtr->getTextCharacterProperties() );
-        break;
     case A_TOKEN( t ):      // "xsd:string" minOccurs="1" The actual text string.
         mbIsInText = true;
         break;
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index bc802e8..6e5391c 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -949,7 +949,6 @@ void SmModel::_getPropertyValues( const PropertyMapEntry **ppEntries, Any *pValu
             case HANDLE_INTEROP_GRAB_BAG:
                 getGrabBagItem(*pValue);
             break;
-            break;
         }
     }
 }


More information about the Libreoffice-commits mailing list