summaryrefslogtreecommitdiff
path: root/starmath/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-03 13:14:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-03 15:27:37 +0200
commit24817c26b3f8cc1a8156357316be442e5460a1a7 (patch)
treee361e25d9ca4cd269fde426ddba135d87d6aba67 /starmath/inc
parentb9e9dde5ae6f8955b5e6584dd5d809c98bb66814 (diff)
loplugin:constparams in starmath
Change-Id: Iac470b572311241216622f22bc543c0bd10a28f6 Reviewed-on: https://gerrit.libreoffice.org/40714 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/inc')
-rw-r--r--starmath/inc/cursor.hxx2
-rw-r--r--starmath/inc/document.hxx2
-rw-r--r--starmath/inc/node.hxx4
-rw-r--r--starmath/inc/view.hxx4
-rw-r--r--starmath/inc/visitors.hxx2
5 files changed, 7 insertions, 7 deletions
diff --git a/starmath/inc/cursor.hxx b/starmath/inc/cursor.hxx
index 72de1a1cbadb..476f021670e0 100644
--- a/starmath/inc/cursor.hxx
+++ b/starmath/inc/cursor.hxx
@@ -208,7 +208,7 @@ private:
*
* These are SmExpression, SmBinHorNode, SmUnHorNode etc.
*/
- static bool IsLineCompositionNode(SmNode* pNode);
+ static bool IsLineCompositionNode(SmNode const * pNode);
/** Count number of selected nodes, excluding line composition nodes
*
diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx
index e18c674f2a69..04cb436b9d0e 100644
--- a/starmath/inc/document.hxx
+++ b/starmath/inc/document.hxx
@@ -172,7 +172,7 @@ public:
void UpdateText();
void SetText(const OUString& rBuffer);
const OUString& GetText() { return maText; }
- void SetFormat(SmFormat& rFormat);
+ void SetFormat(SmFormat const & rFormat);
const SmFormat& GetFormat() { return maFormat; }
void Parse();
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx
index b7a7efe371f4..0abc3736111a 100644
--- a/starmath/inc/node.hxx
+++ b/starmath/inc/node.hxx
@@ -202,7 +202,7 @@ public:
}
/** Set the token for this node */
- void SetToken(SmToken& token){
+ void SetToken(SmToken const & token){
maNodeToken = token;
}
@@ -249,7 +249,7 @@ public:
*
* Returns -1, if pSubNode isn't a subnode of this.
*/
- int IndexOfSubNode(SmNode* pSubNode)
+ int IndexOfSubNode(SmNode const * pSubNode)
{
sal_uInt16 nSize = GetNumSubNodes();
for(sal_uInt16 i = 0; i < nSize; i++)
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx
index e06f85cde4c8..9667d09e30ef 100644
--- a/starmath/inc/view.hxx
+++ b/starmath/inc/view.hxx
@@ -236,9 +236,9 @@ class SmViewShell: public SfxViewShell
bool mbInsertIntoEditWindow;
protected:
- static Size GetTextLineSize(OutputDevice& rDevice,
+ static Size GetTextLineSize(OutputDevice const & rDevice,
const OUString& rLine);
- static Size GetTextSize(OutputDevice& rDevice,
+ static Size GetTextSize(OutputDevice const & rDevice,
const OUString& rText,
long MaxWidth);
static void DrawTextLine(OutputDevice& rDevice,
diff --git a/starmath/inc/visitors.hxx b/starmath/inc/visitors.hxx
index 63271613f10f..6f3b17e733c6 100644
--- a/starmath/inc/visitors.hxx
+++ b/starmath/inc/visitors.hxx
@@ -372,7 +372,7 @@ private:
/** Clone children of pSource and give them to pTarget */
void CloneKids( SmStructureNode* pSource, SmStructureNode* pTarget );
/** Clone attributes on a pNode */
- static void CloneNodeAttr( SmNode* pSource, SmNode* pTarget );
+ static void CloneNodeAttr( SmNode const * pSource, SmNode* pTarget );
};