diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-19 10:24:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-20 06:12:24 +0000 |
commit | 40fc2c1a0d2ebdf47131651045107c9d5abb850d (patch) | |
tree | 66a2d4c7220dfd47b09984892a8a08a7e5ab5fea /starmath/source | |
parent | e7324c5705eaa38a2c9aa0636f01a73f033ba4d6 (diff) |
loplugin:expandablemethodds in sfx2..starmath
Change-Id: Ia4c411f5a9a68c2f344188ce6b6bc1815c89f993
Reviewed-on: https://gerrit.libreoffice.org/30055
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/parse.cxx | 4 | ||||
-rw-r--r-- | starmath/source/rect.cxx | 2 | ||||
-rw-r--r-- | starmath/source/view.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 56023adb10cf..f33a942f0ee5 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -2255,7 +2255,7 @@ void SmParser::DoSpecial() // add symbol name to list of used symbols const OUString aSymbolName(m_aCurToken.aText.copy(1)); if (!aSymbolName.isEmpty()) - AddToUsedSymbols( aSymbolName ); + m_aUsedSymbols.insert( aSymbolName ); m_aNodeStack.push_front(o3tl::make_unique<SmSpecialNode>(m_aCurToken)); NextToken(); @@ -2301,7 +2301,7 @@ SmParser::SmParser() SmTableNode *SmParser::Parse(const OUString &rBuffer) { - ClearUsedSymbols(); + m_aUsedSymbols.clear(); m_aBufferString = convertLineEnd(rBuffer, LINEEND_LF); m_nBufferIndex = 0; diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx index 550cd242b2cd..63798c6b917f 100644 --- a/starmath/source/rect.cxx +++ b/starmath/source/rect.cxx @@ -462,7 +462,7 @@ SmRect & SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode) CopyMBL(rRect); break; case RectCopyMBL::None: - ClearBaseline(); + bHasBaseline = false; nAlignM = (nAlignT + nAlignB) / 2; break; case RectCopyMBL::Xor: diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 3bd645a314bf..47f15e602c94 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -379,7 +379,7 @@ void SmGraphicWindow::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rDoc.DrawFormula(rRenderContext, aPoint, true); //! modifies aPoint to be the topleft //! corner of the formula - SetFormulaDrawPos(aPoint); + aFormulaDrawPos = aPoint; if (IsInlineEditEnabled()) { //Draw cursor if any... |