summaryrefslogtreecommitdiffstats
path: root/sc/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-24 09:26:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-24 10:55:29 +0200
commitfd736c4f7910f5b876c3ab8b8e0e804aa83347a0 (patch)
tree573dcdf37e09ccd74b8fe6706d3cb5ffc327e5e6 /sc/inc
parentloplugin:constparam in sc part3 (diff)
downloadcore-fd736c4f7910f5b876c3ab8b8e0e804aa83347a0.tar.gz
core-fd736c4f7910f5b876c3ab8b8e0e804aa83347a0.zip
loplugin:constparam in sc part4
Change-Id: I745f50257948a53ca07766955c4f4e86dd2a366e Reviewed-on: https://gerrit.libreoffice.org/41497 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/colorscale.hxx2
-rw-r--r--sc/inc/formulacell.hxx4
-rw-r--r--sc/inc/formularesult.hxx2
-rw-r--r--sc/inc/scmod.hxx6
-rw-r--r--sc/inc/xmlwrap.hxx14
-rw-r--r--sc/inc/zforauto.hxx2
6 files changed, 15 insertions, 15 deletions
diff --git a/sc/inc/colorscale.hxx b/sc/inc/colorscale.hxx
index 4fe901e8387d..0d33f1bb7146 100644
--- a/sc/inc/colorscale.hxx
+++ b/sc/inc/colorscale.hxx
@@ -68,7 +68,7 @@ public:
void UpdateReference( const sc::RefUpdateContext& rCxt );
void UpdateInsertTab( sc::RefUpdateInsertTabContext& rCxt );
void UpdateDeleteTab( sc::RefUpdateDeleteTabContext& rCxt );
- void UpdateMoveTab( sc::RefUpdateMoveTabContext& rCxt );
+ void UpdateMoveTab( const sc::RefUpdateMoveTabContext& rCxt );
const ScTokenArray* GetFormula() const;
OUString GetFormula( formula::FormulaGrammar::Grammar eGrammar ) const;
diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx
index a7843f875f7d..17db673be6fe 100644
--- a/sc/inc/formulacell.hxx
+++ b/sc/inc/formulacell.hxx
@@ -283,7 +283,7 @@ public:
void UpdateInsertTab( sc::RefUpdateInsertTabContext& rCxt );
void UpdateInsertTabAbs(SCTAB nTable);
void UpdateDeleteTab( sc::RefUpdateDeleteTabContext& rCxt );
- void UpdateMoveTab( sc::RefUpdateMoveTabContext& rCxt, SCTAB nTabNo );
+ void UpdateMoveTab( const sc::RefUpdateMoveTabContext& rCxt, SCTAB nTabNo );
bool TestTabRefAbs(SCTAB nTable);
void UpdateCompile( bool bForceIfNameInUse );
void FindRangeNamesInUse(sc::UpdatedRangeNames& rIndexes) const;
@@ -373,7 +373,7 @@ public:
OUString GetHybridFormula() const;
- void SetResultMatrix( SCCOL nCols, SCROW nRows, const ScConstMatrixRef& pMat, formula::FormulaToken* pUL );
+ void SetResultMatrix( SCCOL nCols, SCROW nRows, const ScConstMatrixRef& pMat, const formula::FormulaToken* pUL );
/** For import only: set a double result.
Use this instead of SetHybridDouble() if there is no (temporary)
diff --git a/sc/inc/formularesult.hxx b/sc/inc/formularesult.hxx
index 033d45eccb1f..4797b5939522 100644
--- a/sc/inc/formularesult.hxx
+++ b/sc/inc/formularesult.hxx
@@ -207,7 +207,7 @@ public:
SetHybridFormula() for formula string to be compiled later. */
SC_DLLPUBLIC void SetHybridFormula( const OUString & rFormula );
- SC_DLLPUBLIC void SetMatrix( SCCOL nCols, SCROW nRows, const ScConstMatrixRef& pMat, formula::FormulaToken* pUL );
+ SC_DLLPUBLIC void SetMatrix( SCCOL nCols, SCROW nRows, const ScConstMatrixRef& pMat, const formula::FormulaToken* pUL );
/** Get the const ScMatrixFormulaCellToken* if token is of that type, else
NULL. */
diff --git a/sc/inc/scmod.hxx b/sc/inc/scmod.hxx
index 3a85539dbe69..a5acf50dc2de 100644
--- a/sc/inc/scmod.hxx
+++ b/sc/inc/scmod.hxx
@@ -202,14 +202,14 @@ public:
bool InputKeyEvent( const KeyEvent& rKEvt, bool bStartEdit = false );
SC_DLLPUBLIC void InputEnterHandler( ScEnterMode nBlockMode = ScEnterMode::NORMAL );
void InputCancelHandler();
- void InputSelection( EditView* pView );
- void InputChanged( EditView* pView );
+ void InputSelection( const EditView* pView );
+ void InputChanged( const EditView* pView );
ScInputHandler* GetInputHdl( ScTabViewShell* pViewSh = nullptr, bool bUseRef = true );
void SetRefInputHdl( ScInputHandler* pNew );
ScInputHandler* GetRefInputHdl() { return pRefInputHandler;}
- void ViewShellGone(ScTabViewShell* pViewSh);
+ void ViewShellGone(const ScTabViewShell* pViewSh);
void ViewShellChanged(bool bStopEditing = true);
// communication with function-autopilot
void InputGetSelection( sal_Int32& rStart, sal_Int32& rEnd );
diff --git a/sc/inc/xmlwrap.hxx b/sc/inc/xmlwrap.hxx
index d2da6068ee4b..0d3e79432c97 100644
--- a/sc/inc/xmlwrap.hxx
+++ b/sc/inc/xmlwrap.hxx
@@ -69,19 +69,19 @@ class ScXMLImportWrapper
css::uno::Reference< css::task::XStatusIndicator> GetStatusIndicator();
ErrCode ImportFromComponent(const css::uno::Reference<css::uno::XComponentContext>& xContext,
- css::uno::Reference<css::frame::XModel>& xModel,
- css::uno::Reference<css::xml::sax::XParser>& xParser,
+ const css::uno::Reference<css::frame::XModel>& xModel,
+ const css::uno::Reference<css::xml::sax::XParser>& xParser,
css::xml::sax::InputSource& aParserInput,
const OUString& sComponentName, const OUString& sDocName, const OUString& sOldDocName,
- css::uno::Sequence<css::uno::Any>& aArgs,
+ const css::uno::Sequence<css::uno::Any>& aArgs,
bool bMustBeSuccessfull);
bool ExportToComponent(const css::uno::Reference<css::uno::XComponentContext>& xContext,
- css::uno::Reference<css::frame::XModel>& xModel,
- css::uno::Reference<css::xml::sax::XWriter>& xWriter,
- css::uno::Sequence<css::beans::PropertyValue>& aDescriptor,
+ const css::uno::Reference<css::frame::XModel>& xModel,
+ const css::uno::Reference<css::xml::sax::XWriter>& xWriter,
+ const css::uno::Sequence<css::beans::PropertyValue>& aDescriptor,
const OUString& sName, const OUString& sMediaType, const OUString& sComponentName,
- css::uno::Sequence<css::uno::Any>& aArgs,
+ const css::uno::Sequence<css::uno::Any>& aArgs,
ScMySharedData*& pSharedData);
public:
diff --git a/sc/inc/zforauto.hxx b/sc/inc/zforauto.hxx
index f49af7fb4d21..16c02ae19304 100644
--- a/sc/inc/zforauto.hxx
+++ b/sc/inc/zforauto.hxx
@@ -34,7 +34,7 @@ class ScNumFormatAbbrev
public:
ScNumFormatAbbrev();
ScNumFormatAbbrev(const ScNumFormatAbbrev& aFormat);
- ScNumFormatAbbrev(sal_uInt32 nFormat, SvNumberFormatter& rFormatter);
+ ScNumFormatAbbrev(sal_uInt32 nFormat, const SvNumberFormatter& rFormatter);
void Load( SvStream& rStream, rtl_TextEncoding eByteStrSet ); // loading of the numberformats
void Save( SvStream& rStream, rtl_TextEncoding eByteStrSet ) const; // saving of the numberformats
void PutFormatIndex(sal_uInt32 nFormat, const SvNumberFormatter& rFormatter);