diff options
-rw-r--r-- | starmath/source/mathmlexport.cxx | 4 | ||||
-rw-r--r-- | starmath/source/mathmlimport.cxx | 2 | ||||
-rw-r--r-- | starmath/source/node.cxx | 4 | ||||
-rw-r--r-- | starmath/source/view.cxx | 1 |
4 files changed, 3 insertions, 8 deletions
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx index 6e34b32e96dc..53445fc7c5d1 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 2273c10a4b46..b63eab5a36a4 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 4760d9279824..47adc291a7be 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 1450ed5af83c..58e031a8aeed 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)); } |