diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-08 09:34:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-08 11:10:57 +0200 |
commit | e494cc2942899fd92a2273eaed2bf41eb74ea8a9 (patch) | |
tree | 34f905b91195d2d59aa5925116dbb6257391c40a /starmath/inc | |
parent | 0ddf3e0a628599d01356cb5262b93faca073ee9f (diff) |
loplugin:constfields in starmath
Change-Id: I5092401b4138ca15e93b36adf1b059e75d4e8f5a
Reviewed-on: https://gerrit.libreoffice.org/61514
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/ElementsDockingWindow.hxx | 4 | ||||
-rw-r--r-- | starmath/inc/action.hxx | 4 | ||||
-rw-r--r-- | starmath/inc/node.hxx | 4 | ||||
-rw-r--r-- | starmath/inc/parse.hxx | 2 | ||||
-rw-r--r-- | starmath/inc/token.hxx | 8 | ||||
-rw-r--r-- | starmath/inc/view.hxx | 2 | ||||
-rw-r--r-- | starmath/inc/visitors.hxx | 4 |
7 files changed, 14 insertions, 14 deletions
diff --git a/starmath/inc/ElementsDockingWindow.hxx b/starmath/inc/ElementsDockingWindow.hxx index 1b4836d8ff62..1e1cf4111bff 100644 --- a/starmath/inc/ElementsDockingWindow.hxx +++ b/starmath/inc/ElementsDockingWindow.hxx @@ -33,8 +33,8 @@ class SmNode; class SmElement { std::unique_ptr<SmNode> mpNode; - OUString maText; - OUString maHelpText; + OUString const maText; + OUString const maHelpText; public: Point mBoxLocation; Size mBoxSize; diff --git a/starmath/inc/action.hxx b/starmath/inc/action.hxx index 6684a7461e95..cde1e0ce3b47 100644 --- a/starmath/inc/action.hxx +++ b/starmath/inc/action.hxx @@ -28,8 +28,8 @@ class SmDocShell; class SmFormatAction: public SfxUndoAction { SmDocShell *pDoc; - SmFormat aOldFormat; - SmFormat aNewFormat; + SmFormat const aOldFormat; + SmFormat const aNewFormat; public: SmFormatAction(SmDocShell *pDocSh, const SmFormat& rOldFormat, const SmFormat& rNewFormat); diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index b9a11864b1a8..9ee746d9d04c 100644 --- a/starmath/inc/node.hxx +++ b/starmath/inc/node.hxx @@ -98,7 +98,7 @@ class SmNode : public SmRect SmFace maFace; SmToken maNodeToken; - SmNodeType meType; + SmNodeType const meType; SmScaleMode meScaleMode; RectHorAlign meRectHorAlign; FontChangeMask mnFlags; @@ -435,7 +435,7 @@ public: */ class SmSpecialNode : public SmTextNode { - bool mbIsFromGreekSymbolSet; + bool const mbIsFromGreekSymbolSet; protected: SmSpecialNode(SmNodeType eNodeType, const SmToken &rNodeToken, sal_uInt16 _nFontDesc); diff --git a/starmath/inc/parse.hxx b/starmath/inc/parse.hxx index 851512030c5b..544ab1cf7dcb 100644 --- a/starmath/inc/parse.hxx +++ b/starmath/inc/parse.hxx @@ -66,7 +66,7 @@ class SmParser std::set< OUString > m_aUsedSymbols; // CharClass representing a locale for parsing numbers - CharClass m_aNumCC; + CharClass const m_aNumCC; // pointer to System locale's CharClass, which is alive inside SM_MOD() const CharClass* m_pSysCC; diff --git a/starmath/inc/token.hxx b/starmath/inc/token.hxx index 7bf4da95f31f..c9093293ed43 100644 --- a/starmath/inc/token.hxx +++ b/starmath/inc/token.hxx @@ -128,10 +128,10 @@ struct SmToken struct SmTokenTableEntry { const sal_Char* pIdent; - SmTokenType eType; - sal_Unicode cMathChar; - TG nGroup; - sal_uInt16 nLevel; + SmTokenType const eType; + sal_Unicode const cMathChar; + TG const nGroup; + sal_uInt16 const nLevel; }; #endif diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx index 7b6e741895bb..43221c4a66d2 100644 --- a/starmath/inc/view.hxx +++ b/starmath/inc/view.hxx @@ -215,7 +215,7 @@ class SmViewShell: public SfxViewShell std::unique_ptr<SmViewShell_Impl> mpImpl; VclPtr<SmGraphicWindow> mpGraphic; - SmGraphicController maGraphicController; + SmGraphicController const maGraphicController; OUString maStatusText; bool mbPasteState; diff --git a/starmath/inc/visitors.hxx b/starmath/inc/visitors.hxx index 6f3b17e733c6..290f1bdeacb8 100644 --- a/starmath/inc/visitors.hxx +++ b/starmath/inc/visitors.hxx @@ -116,8 +116,8 @@ private: OutputDevice &mrDev; SmCaretPos maPos; /** Offset to draw from */ - Point maOffset; - bool mbCaretVisible; + Point const maOffset; + bool const mbCaretVisible; protected: /** Default method for drawing pNodes */ void DefaultVisit( SmNode* pNode ) override; |