summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-11-20 16:50:46 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-11-20 16:52:23 +0100
commit2aa31da545efa130e6e0a3d0aeb32ae0514d16e9 (patch)
treed4ea493469441a87d2246dc48e27aff7a78d13e9 /starmath
parent1ed9af9a4419b50a76eea56eb2e4c684e616673b (diff)
clang plugin warnings
Change-Id: Id58c593577c432537b3ca07087aeb17ed10772b6
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/mathmlexport.cxx4
-rw-r--r--starmath/source/mathmlimport.cxx2
-rw-r--r--starmath/source/node.cxx4
-rw-r--r--starmath/source/view.cxx1
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));
}