[Libreoffice-commits] .: starmath/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Nov 20 07:52:46 PST 2012


 starmath/source/mathmlexport.cxx |    4 ++--
 starmath/source/mathmlimport.cxx |    2 +-
 starmath/source/node.cxx         |    4 ----
 starmath/source/view.cxx         |    1 -
 4 files changed, 3 insertions(+), 8 deletions(-)

New commits:
commit 2aa31da545efa130e6e0a3d0aeb32ae0514d16e9
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Tue Nov 20 16:50:46 2012 +0100

    clang plugin warnings
    
    Change-Id: Id58c593577c432537b3ca07087aeb17ed10772b6

diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx
index 6e34b32..53445fc 100644
--- a/starmath/source/mathmlexport.cxx
+++ b/starmath/source/mathmlexport.cxx
@@ -384,7 +384,7 @@ throw(uno::RuntimeException)
     if ( rId.getLength() == 16 &&
         0 == memcmp( getUnoTunnelId().getConstArray(),
         rId.getConstArray(), 16 ) )
-    return sal::static_int_cast< sal_Int64 >(reinterpret_cast< sal_uIntPtr >(this));
+        return sal::static_int_cast< sal_Int64 >(reinterpret_cast< sal_uIntPtr >(this));
 
     return SvXMLExport::getSomething( rId );
 }
@@ -759,7 +759,7 @@ void SmXMLExport::ExportExpression(const SmNode *pNode, int nLevel)
     if (nSize > 1 || (pNode && pNode->GetType() == NEXPRESSION))
         pRow = new SvXMLElementExport(*this, XML_NAMESPACE_MATH, XML_MROW, sal_True, sal_True);
 
-        for (sal_uInt16 i = 0; i < nSize; i++)
+    for (sal_uInt16 i = 0; i < nSize; i++)
         if (const SmNode *pTemp = pNode->GetSubNode(i))
             ExportNodes(pTemp, nLevel+1);
 
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 2273c10..b63eab5 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -539,7 +539,7 @@ throw(uno::RuntimeException)
     if ( rId.getLength() == 16 &&
         0 == memcmp( getUnoTunnelId().getConstArray(),
         rId.getConstArray(), 16 ) )
-    return sal::static_int_cast< sal_Int64 >(reinterpret_cast< sal_uIntPtr >(this));
+        return sal::static_int_cast< sal_Int64 >(reinterpret_cast< sal_uIntPtr >(this));
 
     return SvXMLImport::getSomething( rId );
 }
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 4760d92..47adc29 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -825,8 +825,6 @@ void SmExpressionNode::CreateTextFromNode(String &rText)
 void SmTableNode::Arrange(const OutputDevice &rDev, const SmFormat &rFormat)
     // arranges all subnodes in one column
 {
-    Point rPosition;
-
     SmNode *pNode;
     sal_uInt16  nSize   = GetNumSubNodes();
 
@@ -2533,8 +2531,6 @@ void SmMatrixNode::CreateTextFromNode(String &rText)
 
 void SmMatrixNode::Arrange(const OutputDevice &rDev, const SmFormat &rFormat)
 {
-    Point   aPosition,
-            aOffset;
     SmNode *pNode;
     sal_uInt16  i, j;
 
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 1450ed5..58e031a 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -326,7 +326,6 @@ void SmGraphicWindow::SetCursor(const SmNode *pNode)
           aTLPos  (GetFormulaDrawPos() + aOffset);
     aTLPos.X() -= pNode->GetItalicLeftSpace();
     Size  aSize   (pNode->GetItalicSize());
-    Point aBRPos  (aTLPos.X() + aSize.Width(), aTLPos.Y() + aSize.Height());
 
     SetCursor(Rectangle(aTLPos, aSize));
 }


More information about the Libreoffice-commits mailing list