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 | |
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')
-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 | ||||
-rw-r--r-- | starmath/source/accessibility.hxx | 4 | ||||
-rw-r--r-- | starmath/source/dialog.cxx | 6 | ||||
-rw-r--r-- | starmath/source/document.cxx | 6 | ||||
-rw-r--r-- | starmath/source/mathmlimport.cxx | 2 | ||||
-rw-r--r-- | starmath/source/mathtype.hxx | 2 | ||||
-rw-r--r-- | starmath/source/ooxmlexport.hxx | 2 | ||||
-rw-r--r-- | starmath/source/uiobject.hxx | 2 | ||||
-rw-r--r-- | starmath/source/view.cxx | 2 |
15 files changed, 27 insertions, 27 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; diff --git a/starmath/source/accessibility.hxx b/starmath/source/accessibility.hxx index 8723d61e9309..e74b5581b0c4 100644 --- a/starmath/source/accessibility.hxx +++ b/starmath/source/accessibility.hxx @@ -59,7 +59,7 @@ SmGraphicAccessibleBaseClass; class SmGraphicAccessible final : public SmGraphicAccessibleBaseClass { - OUString aAccName; + OUString const aAccName; /// client id in the AccessibleEventNotifier queue sal_uInt32 nClientId; @@ -300,7 +300,7 @@ SmEditAccessibleBaseClass; class SmEditAccessible : public SmEditAccessibleBaseClass { - OUString aAccName; + OUString const aAccName; std::unique_ptr<::accessibility::AccessibleTextHelper> pTextHelper; VclPtr<SmEditWindow> pWin; diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index 127bcaac30d5..676ed1d74b6f 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -71,9 +71,9 @@ void lclGetSettingColors(Color& rBackgroundColor, Color& rTextColor) class SmFontStyles { - OUString aNormal; - OUString aBold; - OUString aItalic; + OUString const aNormal; + OUString const aBold; + OUString const aItalic; OUString aBoldItalic; public: diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index c49fc8712998..1e9ec6f25d60 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -276,10 +276,10 @@ void SetEditEngineDefaultFonts(SfxItemPool &rEditEngineItemPool, const SvtLinguO { // set fonts to be used struct FontDta { - LanguageType nFallbackLang; + LanguageType const nFallbackLang; LanguageType nLang; - DefaultFontType nFontType; - sal_uInt16 nFontInfoId; + DefaultFontType const nFontType; + sal_uInt16 const nFontInfoId; } aTable[3] = { // info to get western font to be used diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index 27fc49018455..bbcd70739ce6 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -926,7 +926,7 @@ public: class SmXMLRowContext_Impl : public SmXMLDocContext_Impl { protected: - size_t nElementCount; + size_t const nElementCount; public: SmXMLRowContext_Impl(SmXMLImport &rImport,sal_uInt16 nPrefix, diff --git a/starmath/source/mathtype.hxx b/starmath/source/mathtype.hxx index 1e3a744d7789..0a9ca7d442bf 100644 --- a/starmath/source/mathtype.hxx +++ b/starmath/source/mathtype.hxx @@ -151,7 +151,7 @@ private: void TypeFaceToString(OUString &rRet,sal_uInt8 nFace); OUStringBuffer &rRet; - SmNode *pTree; + SmNode * const pTree; sal_uInt8 nHAlign; diff --git a/starmath/source/ooxmlexport.hxx b/starmath/source/ooxmlexport.hxx index f7e05d7d165f..f7b36a0b2b0f 100644 --- a/starmath/source/ooxmlexport.hxx +++ b/starmath/source/ooxmlexport.hxx @@ -38,7 +38,7 @@ private: void HandleVerticalBrace( const SmVerticalBraceNode* pNode, int nLevel ) override; void HandleBlank() override; ::sax_fastparser::FSHelperPtr m_pSerializer; - oox::core::OoxmlVersion version; + oox::core::OoxmlVersion const version; /// needed to determine markup for nested run properties oox::drawingml::DocumentType const m_DocumentType; }; diff --git a/starmath/source/uiobject.hxx b/starmath/source/uiobject.hxx index ecfef8abe627..616066f85df2 100644 --- a/starmath/source/uiobject.hxx +++ b/starmath/source/uiobject.hxx @@ -20,7 +20,7 @@ class ElementUIObject : public UIObject { private: VclPtr<SmElementsControl> mxElementsSelector; - OUString maID; + OUString const maID; public: diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index ddf3e23e49b4..ddf9623a0656 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -853,7 +853,7 @@ struct SmViewShell_Impl { std::unique_ptr<sfx2::DocumentInserter> pDocInserter; std::unique_ptr<SfxRequest> pRequest; - SvtMiscOptions aOpts; + SvtMiscOptions const aOpts; }; |