summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-21 17:06:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-22 09:12:56 +0200
commitc82cf38427c47f60ba6cc6a008c9f60fb488dae9 (patch)
tree88e3145e80ad802f9b0c27f00139efb3712bef1a /include
parent5fad6eb1b38d369f4f7ca401f3c651292667486e (diff)
loplugin:constparams in editeng,lingucomponent
Change-Id: I99d9153e3fd1fead34c856ac68a120bb06a003d3 Reviewed-on: https://gerrit.libreoffice.org/40296 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/editeng/AccessibleEditableTextPara.hxx2
-rw-r--r--include/editeng/editeng.hxx12
-rw-r--r--include/editeng/editview.hxx2
-rw-r--r--include/editeng/flditem.hxx6
-rw-r--r--include/editeng/svxacorr.hxx2
5 files changed, 12 insertions, 12 deletions
diff --git a/include/editeng/AccessibleEditableTextPara.hxx b/include/editeng/AccessibleEditableTextPara.hxx
index bb4ce4f17cad..142634783b2f 100644
--- a/include/editeng/AccessibleEditableTextPara.hxx
+++ b/include/editeng/AccessibleEditableTextPara.hxx
@@ -234,7 +234,7 @@ namespace accessibility
/// Unsets the given state on the internal state set and fires STATE_CHANGE event. Don't hold locks when calling this!
void UnSetState( const sal_Int16 nStateId );
- static tools::Rectangle LogicToPixel( const tools::Rectangle& rRect, const MapMode& rMapMode, SvxViewForwarder& rForwarder );
+ static tools::Rectangle LogicToPixel( const tools::Rectangle& rRect, const MapMode& rMapMode, SvxViewForwarder const & rForwarder );
SvxEditSourceAdapter& GetEditSource() const;
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx
index 2e364af0f75f..5ecb5ddb1008 100644
--- a/include/editeng/editeng.hxx
+++ b/include/editeng/editeng.hxx
@@ -165,8 +165,8 @@ private:
EDITENG_DLLPRIVATE void CursorMoved(ContentNode* pPrevNode);
EDITENG_DLLPRIVATE void CheckIdleFormatter();
EDITENG_DLLPRIVATE bool IsIdleFormatterActive() const;
- EDITENG_DLLPRIVATE ParaPortion* FindParaPortion(ContentNode* pNode);
- EDITENG_DLLPRIVATE const ParaPortion* FindParaPortion(ContentNode* pNode) const;
+ EDITENG_DLLPRIVATE ParaPortion* FindParaPortion(ContentNode const * pNode);
+ EDITENG_DLLPRIVATE const ParaPortion* FindParaPortion(ContentNode const * pNode) const;
EDITENG_DLLPRIVATE const ParaPortion* GetPrevVisPortion(const ParaPortion* pCurPortion) const;
EDITENG_DLLPRIVATE css::uno::Reference<
@@ -421,7 +421,7 @@ public:
css::linguistic2::XSpellChecker1 >
GetSpeller();
void SetHyphenator( css::uno::Reference<
- css::linguistic2::XHyphenator >& xHyph );
+ css::linguistic2::XHyphenator > const & xHyph );
void GetAllMisspellRanges( std::vector<editeng::MisspellRanges>& rRanges ) const;
void SetAllMisspellRanges( const std::vector<editeng::MisspellRanges>& rRanges );
@@ -442,11 +442,11 @@ public:
bool HasText( const SvxSearchItem& rSearchItem );
//spell and return a sentence
- bool SpellSentence(EditView& rEditView, svx::SpellPortions& rToFill );
+ bool SpellSentence(EditView const & rEditView, svx::SpellPortions& rToFill );
// put spell position to start of current sentence
- void PutSpellingToSentenceStart( EditView& rEditView );
+ void PutSpellingToSentenceStart( EditView const & rEditView );
//applies a changed sentence
- void ApplyChangedSentence(EditView& rEditView, const svx::SpellPortions& rNewPortions, bool bRecheck );
+ void ApplyChangedSentence(EditView const & rEditView, const svx::SpellPortions& rNewPortions, bool bRecheck );
// for text conversion (see also HasSpellErrors)
bool HasConvertibleTextPortion( LanguageType nLang );
diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx
index 62e5de2aad2b..bbf70718c5bc 100644
--- a/include/editeng/editview.hxx
+++ b/include/editeng/editview.hxx
@@ -230,7 +230,7 @@ public:
bool IsCursorAtWrongSpelledWord();
bool IsWrongSpelledWordAtPos( const Point& rPosPixel, bool bMarkIfWrong = false );
- void ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo&,void>* pCallBack );
+ void ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo&,void> const * pCallBack );
void InsertField( const SvxFieldItem& rFld );
const SvxFieldItem* GetFieldUnderMousePointer() const;
diff --git a/include/editeng/flditem.hxx b/include/editeng/flditem.hxx
index 2ab51cd62b4c..66ef6fad2570 100644
--- a/include/editeng/flditem.hxx
+++ b/include/editeng/flditem.hxx
@@ -128,7 +128,7 @@ public:
// If eLanguage==LANGUAGE_DONTKNOW the language/country
// used in number formatter initialization is taken.
OUString GetFormatted( SvNumberFormatter& rFormatter, LanguageType eLanguage ) const;
- static OUString GetFormatted( Date& rDate, SvxDateFormat eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage );
+ static OUString GetFormatted( Date const & rDate, SvxDateFormat eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage );
virtual SvxFieldData* Clone() const override;
virtual bool operator==( const SvxFieldData& ) const override;
@@ -287,7 +287,7 @@ public:
// If eLanguage==LANGUAGE_DONTKNOW the language/country
// used in number formatter initialization is taken.
OUString GetFormatted( SvNumberFormatter& rFormatter, LanguageType eLanguage ) const;
- static OUString GetFormatted( tools::Time& rTime, SvxTimeFormat eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage );
+ static OUString GetFormatted( tools::Time const & rTime, SvxTimeFormat eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage );
virtual SvxFieldData* Clone() const override;
virtual bool operator==( const SvxFieldData& ) const override;
@@ -403,7 +403,7 @@ public:
SV_DECL_PERSIST1( SvxDateTimeField, css::text::textfield::Type::PRESENTATION_DATE_TIME )
SvxDateTimeField();
- static OUString GetFormatted( Date& rDate, tools::Time& rTime, int eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage );
+ static OUString GetFormatted( Date const & rDate, tools::Time const & rTime, int eFormat, SvNumberFormatter& rFormatter, LanguageType eLanguage );
virtual SvxFieldData* Clone() const override;
virtual bool operator==( const SvxFieldData& ) const override;
diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx
index 1cc14c0214ae..f5d3ddf0652c 100644
--- a/include/editeng/svxacorr.hxx
+++ b/include/editeng/svxacorr.hxx
@@ -309,7 +309,7 @@ public:
void SetStartDoubleQuote( const sal_Unicode cStart ) { cStartDQuote = cStart; }
void SetEndDoubleQuote( const sal_Unicode cEnd ) { cEndDQuote = cEnd; }
- OUString GetQuote( SvxAutoCorrDoc& rDoc, sal_Int32 nInsPos,
+ OUString GetQuote( SvxAutoCorrDoc const & rDoc, sal_Int32 nInsPos,
sal_Unicode cInsChar, bool bSttQuote );
void InsertQuote( SvxAutoCorrDoc& rDoc, sal_Int32 nInsPos,
sal_Unicode cInsChar, bool bSttQuote, bool bIns );