summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-11 10:46:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-15 07:56:12 +0200
commitfb1d3b580763a333bbbfe115d09e1b5cd8849675 (patch)
tree93cf0598c86ba188f69ab30425ffea856ea9886b /sc/inc
parent40bc840da261fcc5652e5278dc2566b61f990884 (diff)
loplugin:constfields in sc
Change-Id: If326175d571d15752efd1b63df45b2bc785f7541 Reviewed-on: https://gerrit.libreoffice.org/61653 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/AccessibleFilterMenuItem.hxx2
-rw-r--r--sc/inc/ChartTools.hxx2
-rw-r--r--sc/inc/PivotTableDataProvider.hxx2
-rw-r--r--sc/inc/PivotTableDataSequence.hxx6
-rw-r--r--sc/inc/TablePivotChart.hxx4
-rw-r--r--sc/inc/TablePivotCharts.hxx2
-rw-r--r--sc/inc/addincol.hxx14
-rw-r--r--sc/inc/addruno.hxx2
-rw-r--r--sc/inc/afmtuno.hxx8
-rw-r--r--sc/inc/appluno.hxx2
-rw-r--r--sc/inc/attarray.hxx2
-rw-r--r--sc/inc/autonamecache.hxx2
-rw-r--r--sc/inc/brdcst.hxx2
-rw-r--r--sc/inc/callform.hxx10
-rw-r--r--sc/inc/cellsuno.hxx8
-rw-r--r--sc/inc/cellvalues.hxx4
-rw-r--r--sc/inc/chart2uno.hxx4
-rw-r--r--sc/inc/chartlis.hxx2
-rw-r--r--sc/inc/chartpos.hxx8
-rw-r--r--sc/inc/chartuno.hxx6
-rw-r--r--sc/inc/chgtrack.hxx8
-rw-r--r--sc/inc/clipcontext.hxx12
-rw-r--r--sc/inc/colorscale.hxx4
-rw-r--r--sc/inc/column.hxx2
-rw-r--r--sc/inc/columniterator.hxx2
-rw-r--r--sc/inc/columnspanset.hxx6
-rw-r--r--sc/inc/compiler.hxx14
-rw-r--r--sc/inc/confuno.hxx2
-rw-r--r--sc/inc/dapiuno.hxx10
-rw-r--r--sc/inc/datamapper.hxx2
-rw-r--r--sc/inc/datauno.hxx10
-rw-r--r--sc/inc/defaultsoptions.hxx2
-rw-r--r--sc/inc/defltuno.hxx2
-rw-r--r--sc/inc/detdata.hxx2
-rw-r--r--sc/inc/detfunc.hxx2
-rw-r--r--sc/inc/dociter.hxx50
-rw-r--r--sc/inc/docoptio.hxx2
-rw-r--r--sc/inc/document.hxx10
-rw-r--r--sc/inc/docuno.hxx18
-rw-r--r--sc/inc/dpfilteredcache.hxx2
-rw-r--r--sc/inc/dpgroup.hxx2
-rw-r--r--sc/inc/dpobject.hxx12
-rw-r--r--sc/inc/dpoutput.hxx2
-rw-r--r--sc/inc/dpoutputgeometry.hxx4
-rw-r--r--sc/inc/dpresfilter.hxx4
-rw-r--r--sc/inc/dptabres.hxx16
-rw-r--r--sc/inc/dptabsrc.hxx30
-rw-r--r--sc/inc/drwlayer.hxx18
-rw-r--r--sc/inc/editdataarray.hxx6
-rw-r--r--sc/inc/editsrc.hxx4
-rw-r--r--sc/inc/editutil.hxx20
-rw-r--r--sc/inc/eventuno.hxx2
-rw-r--r--sc/inc/externalrefmgr.hxx6
-rw-r--r--sc/inc/fielduno.hxx4
-rw-r--r--sc/inc/fillinfo.hxx2
-rw-r--r--sc/inc/fmtuno.hxx2
-rw-r--r--sc/inc/formulagroup.hxx12
-rw-r--r--sc/inc/formulaiter.hxx2
-rw-r--r--sc/inc/formulalogger.hxx2
-rw-r--r--sc/inc/formulaopt.hxx2
-rw-r--r--sc/inc/formularesult.hxx2
-rw-r--r--sc/inc/funcdesc.hxx2
-rw-r--r--sc/inc/funcuno.hxx2
-rw-r--r--sc/inc/grouparealistener.hxx4
-rw-r--r--sc/inc/hints.hxx26
-rw-r--r--sc/inc/linkuno.hxx24
-rw-r--r--sc/inc/listenercontext.hxx2
-rw-r--r--sc/inc/lookupcache.hxx10
-rw-r--r--sc/inc/miscuno.hxx2
-rw-r--r--sc/inc/nameuno.hxx4
-rw-r--r--sc/inc/notesuno.hxx2
-rw-r--r--sc/inc/orcusxml.hxx2
-rw-r--r--sc/inc/postit.hxx2
-rw-r--r--sc/inc/printopt.hxx2
-rw-r--r--sc/inc/prnsave.hxx2
-rw-r--r--sc/inc/queryparam.hxx2
-rw-r--r--sc/inc/rangenam.hxx8
-rw-r--r--sc/inc/recursionhelper.hxx4
-rw-r--r--sc/inc/reffind.hxx6
-rw-r--r--sc/inc/refhint.hxx18
-rw-r--r--sc/inc/refupdatecontext.hxx12
-rw-r--r--sc/inc/rowheightcontext.hxx8
-rw-r--r--sc/inc/scopetools.hxx8
-rw-r--r--sc/inc/sheetdata.hxx14
-rw-r--r--sc/inc/simpleformulacalc.hxx6
-rw-r--r--sc/inc/srchuno.hxx2
-rw-r--r--sc/inc/styleuno.hxx4
-rw-r--r--sc/inc/subtotal.hxx2
-rw-r--r--sc/inc/tabbgcolor.hxx2
-rw-r--r--sc/inc/targuno.hxx2
-rw-r--r--sc/inc/textuno.hxx4
-rw-r--r--sc/inc/token.hxx30
-rw-r--r--sc/inc/tokenstringcontext.hxx4
-rw-r--r--sc/inc/typedstrdata.hxx4
-rw-r--r--sc/inc/undorangename.hxx2
-rw-r--r--sc/inc/unitconv.hxx4
-rw-r--r--sc/inc/unoreflist.hxx6
-rw-r--r--sc/inc/validat.hxx2
-rw-r--r--sc/inc/viewopti.hxx2
-rw-r--r--sc/inc/viewuno.hxx4
100 files changed, 326 insertions, 328 deletions
diff --git a/sc/inc/AccessibleFilterMenuItem.hxx b/sc/inc/AccessibleFilterMenuItem.hxx
index 319903a844dc..6e8784b8f535 100644
--- a/sc/inc/AccessibleFilterMenuItem.hxx
+++ b/sc/inc/AccessibleFilterMenuItem.hxx
@@ -89,7 +89,7 @@ private:
css::uno::Reference< css::accessibility::XAccessibleStateSet > mxStateSet;
VclPtr<ScMenuFloatingWindow> mpWindow;
- size_t mnMenuPos;
+ size_t const mnMenuPos;
};
#endif
diff --git a/sc/inc/ChartTools.hxx b/sc/inc/ChartTools.hxx
index 736142a056c6..af0a4e807827 100644
--- a/sc/inc/ChartTools.hxx
+++ b/sc/inc/ChartTools.hxx
@@ -35,7 +35,7 @@ class ChartIterator
{
private:
std::unique_ptr<SdrObjListIter> m_pIterator;
- ChartSourceType m_eChartSourceType;
+ ChartSourceType const m_eChartSourceType;
public:
ChartIterator(ScDocShell* pDocShell, SCTAB nTab, ChartSourceType eChartSourceType);
SdrOle2Obj* next();
diff --git a/sc/inc/PivotTableDataProvider.hxx b/sc/inc/PivotTableDataProvider.hxx
index 1403dfdad3d2..4f803e204e27 100644
--- a/sc/inc/PivotTableDataProvider.hxx
+++ b/sc/inc/PivotTableDataProvider.hxx
@@ -157,7 +157,7 @@ private:
ScDocument* m_pDocument;
OUString m_sPivotTableName;
- SfxItemPropertySet m_aPropSet;
+ SfxItemPropertySet const m_aPropSet;
bool m_bIncludeHiddenCells;
std::vector<std::vector<ValueAndFormat>> m_aCategoriesColumnOrientation;
diff --git a/sc/inc/PivotTableDataSequence.hxx b/sc/inc/PivotTableDataSequence.hxx
index 8448edcc5a9e..b834e4ae81c5 100644
--- a/sc/inc/PivotTableDataSequence.hxx
+++ b/sc/inc/PivotTableDataSequence.hxx
@@ -156,10 +156,10 @@ public:
private:
ScDocument* m_pDocument;
- OUString m_sPivotTableName;
- OUString m_aID;
+ OUString const m_sPivotTableName;
+ OUString const m_aID;
std::vector<ValueAndFormat> m_aData;
- SfxItemPropertySet m_aPropSet;
+ SfxItemPropertySet const m_aPropSet;
css::chart2::data::DataSequenceRole m_aRole;
std::vector<css::uno::Reference<css::util::XModifyListener>> m_aValueListeners;
};
diff --git a/sc/inc/TablePivotChart.hxx b/sc/inc/TablePivotChart.hxx
index b94886bcf96f..a99711c37845 100644
--- a/sc/inc/TablePivotChart.hxx
+++ b/sc/inc/TablePivotChart.hxx
@@ -37,8 +37,8 @@ class TablePivotChart : public cppu::BaseMutex,
{
private:
ScDocShell* m_pDocShell;
- SCTAB m_nTab; // Charts are per sheet
- OUString m_aChartName;
+ SCTAB const m_nTab; // Charts are per sheet
+ OUString const m_aChartName;
public:
TablePivotChart(ScDocShell* pDocShell, SCTAB nTab, OUString const & rName);
diff --git a/sc/inc/TablePivotCharts.hxx b/sc/inc/TablePivotCharts.hxx
index b5c9deab92d6..2e8d8f4deb8e 100644
--- a/sc/inc/TablePivotCharts.hxx
+++ b/sc/inc/TablePivotCharts.hxx
@@ -32,7 +32,7 @@ class TablePivotCharts : public TablePivotCharts_Base, public SfxListener
{
private:
ScDocShell* m_pDocShell;
- SCTAB m_nTab;
+ SCTAB const m_nTab;
public:
TablePivotCharts(ScDocShell* pDocShell, SCTAB nTab);
diff --git a/sc/inc/addincol.hxx b/sc/inc/addincol.hxx
index 46de0b84c7ef..1da45b96d55e 100644
--- a/sc/inc/addincol.hxx
+++ b/sc/inc/addincol.hxx
@@ -81,19 +81,19 @@ public:
: maLocale( rLocale), maName( rName) { }
};
private:
- OUString aOriginalName; ///< kept in formula
- OUString aLocalName; ///< for display
- OUString aUpperName; ///< for entering formulas
- OUString aUpperLocal; ///< for entering formulas
- OUString aDescription;
+ OUString const aOriginalName; ///< kept in formula
+ OUString const aLocalName; ///< for display
+ OUString aUpperName; ///< for entering formulas
+ OUString aUpperLocal; ///< for entering formulas
+ OUString const aDescription;
css::uno::Reference< css::reflection::XIdlMethod> xFunction;
css::uno::Any aObject;
long nArgCount;
std::unique_ptr<ScAddInArgDesc[]>
pArgDescs;
long nCallerPos;
- sal_uInt16 nCategory;
- OString sHelpId;
+ sal_uInt16 const nCategory;
+ OString const sHelpId;
mutable ::std::vector< LocalizedName > maCompNames;
mutable bool bCompInitialized;
diff --git a/sc/inc/addruno.hxx b/sc/inc/addruno.hxx
index 095ddf6012d0..62a0e7c8b0b8 100644
--- a/sc/inc/addruno.hxx
+++ b/sc/inc/addruno.hxx
@@ -35,7 +35,7 @@ private:
ScDocShell* pDocShell;
ScRange aRange;
sal_Int32 nRefSheet;
- bool bIsRange;
+ bool const bIsRange;
bool ParseUIString( const OUString& rUIString, ::formula::FormulaGrammar::AddressConvention eConv = ::formula::FormulaGrammar::CONV_OOO );
diff --git a/sc/inc/afmtuno.hxx b/sc/inc/afmtuno.hxx
index cdb1500f1f48..5e13886815d7 100644
--- a/sc/inc/afmtuno.hxx
+++ b/sc/inc/afmtuno.hxx
@@ -90,7 +90,7 @@ class ScAutoFormatObj : public ::cppu::WeakImplHelper<
css::lang::XServiceInfo >
{
private:
- SfxItemPropertySet aPropSet;
+ SfxItemPropertySet const aPropSet;
sal_uInt16 nFormatIndex;
ScAutoFormatFieldObj* GetObjectByIndex_Impl(sal_uInt16 nIndex);
@@ -157,9 +157,9 @@ class ScAutoFormatFieldObj : public ::cppu::WeakImplHelper<
css::lang::XServiceInfo >
{
private:
- SfxItemPropertySet aPropSet;
- sal_uInt16 nFormatIndex;
- sal_uInt16 nFieldIndex;
+ SfxItemPropertySet const aPropSet;
+ sal_uInt16 const nFormatIndex;
+ sal_uInt16 const nFieldIndex;
public:
ScAutoFormatFieldObj(sal_uInt16 nFormat, sal_uInt16 nField);
diff --git a/sc/inc/appluno.hxx b/sc/inc/appluno.hxx
index 15bb4d987920..0e923500cb34 100644
--- a/sc/inc/appluno.hxx
+++ b/sc/inc/appluno.hxx
@@ -84,7 +84,7 @@ class ScSpreadsheetSettings : public cppu::WeakImplHelper<
css::lang::XServiceInfo>
{
private:
- SfxItemPropertySet aPropSet;
+ SfxItemPropertySet const aPropSet;
/// @throws css::uno::RuntimeException
bool getPropertyBool(const OUString& aPropertyName);
diff --git a/sc/inc/attarray.hxx b/sc/inc/attarray.hxx
index fc933d9c2f8f..d2ca2d7c842f 100644
--- a/sc/inc/attarray.hxx
+++ b/sc/inc/attarray.hxx
@@ -220,7 +220,7 @@ class ScAttrIterator
const ScPatternAttr* pDefPattern;
SCSIZE nPos;
SCROW nRow;
- SCROW nEndRow;
+ SCROW const nEndRow;
public:
inline ScAttrIterator( const ScAttrArray* pNewArray, SCROW nStart, SCROW nEnd, const ScPatternAttr* pDefaultPattern );
inline const ScPatternAttr* Next( SCROW& rTop, SCROW& rBottom );
diff --git a/sc/inc/autonamecache.hxx b/sc/inc/autonamecache.hxx
index 3be8f87c922a..af17d9417e4a 100644
--- a/sc/inc/autonamecache.hxx
+++ b/sc/inc/autonamecache.hxx
@@ -32,7 +32,7 @@ typedef std::unordered_map< OUString, ScAutoNameAddresses > ScAutoNameHashMap;
class SC_DLLPUBLIC ScAutoNameCache
{
ScAutoNameHashMap aNames;
- ScDocument* pDoc;
+ ScDocument* const pDoc;
SCTAB nCurrentTab;
public:
diff --git a/sc/inc/brdcst.hxx b/sc/inc/brdcst.hxx
index a05b95f55a06..34d7d0394a7c 100644
--- a/sc/inc/brdcst.hxx
+++ b/sc/inc/brdcst.hxx
@@ -35,7 +35,7 @@ public:
class ScAreaChangedHint : public SfxHint
{
private:
- ScRange aNewRange;
+ ScRange const aNewRange;
public:
ScAreaChangedHint(const ScRange& rRange) : aNewRange(rRange) {}
const ScRange& GetRange() const { return aNewRange; }
diff --git a/sc/inc/callform.hxx b/sc/inc/callform.hxx
index fd85ab1122b2..d64f9dfd5fe0 100644
--- a/sc/inc/callform.hxx
+++ b/sc/inc/callform.hxx
@@ -55,11 +55,11 @@ class LegacyFuncData
friend class LegacyFuncCollection;
const ModuleData* pModuleData;
- OUString aInternalName;
- OUString aFuncName;
- sal_uInt16 nNumber;
- sal_uInt16 nParamCount;
- ParamType eAsyncType;
+ OUString const aInternalName;
+ OUString const aFuncName;
+ sal_uInt16 const nNumber;
+ sal_uInt16 const nParamCount;
+ ParamType const eAsyncType;
ParamType eParamType[MAXFUNCPARAM];
public:
LegacyFuncData(const ModuleData*pModule,
diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx
index d36e7442bbb7..865a5d5433b0 100644
--- a/sc/inc/cellsuno.hxx
+++ b/sc/inc/cellsuno.hxx
@@ -118,7 +118,7 @@ namespace editeng { class SvxBorderLine; }
class ScLinkListener : public SvtListener
{
- Link<const SfxHint&,void> aLink;
+ Link<const SfxHint&,void> const aLink;
public:
ScLinkListener(const Link<const SfxHint&,void>& rL) : aLink(rL) {}
virtual ~ScLinkListener() override;
@@ -1114,7 +1114,7 @@ class ScCellFormatsObj : public cppu::WeakImplHelper<
{
private:
ScDocShell* pDocShell;
- ScRange aTotalRange;
+ ScRange const aTotalRange;
private:
ScCellRangeObj* GetObjectByIndex_Impl(long nIndex) const;
@@ -1150,7 +1150,7 @@ class ScCellFormatsEnumeration : public cppu::WeakImplHelper<
{
private:
ScDocShell* pDocShell;
- SCTAB nTab;
+ SCTAB const nTab;
std::unique_ptr<ScAttrRectIterator> pIter;
ScRange aNext;
bool bAtEnd;
@@ -1186,7 +1186,7 @@ class ScUniqueCellFormatsObj : public cppu::WeakImplHelper<
{
private:
ScDocShell* pDocShell;
- ScRange aTotalRange;
+ ScRange const aTotalRange;
ScMyRangeLists aRangeLists;
public:
diff --git a/sc/inc/cellvalues.hxx b/sc/inc/cellvalues.hxx
index 7cc64bfc98ac..431239835271 100644
--- a/sc/inc/cellvalues.hxx
+++ b/sc/inc/cellvalues.hxx
@@ -28,8 +28,8 @@ struct CellValuesImpl;
struct CellValueSpan
{
- SCROW mnRow1;
- SCROW mnRow2;
+ SCROW const mnRow1;
+ SCROW const mnRow2;
CellValueSpan( SCROW nRow1, SCROW nRow2 );
};
diff --git a/sc/inc/chart2uno.hxx b/sc/inc/chart2uno.hxx
index 254934c1d1c4..91eaf12ff408 100644
--- a/sc/inc/chart2uno.hxx
+++ b/sc/inc/chart2uno.hxx
@@ -144,7 +144,7 @@ public:
private:
ScDocument* m_pDocument;
- SfxItemPropertySet m_aPropSet;
+ SfxItemPropertySet const m_aPropSet;
bool m_bIncludeHiddenCells;
};
@@ -376,7 +376,7 @@ private:
RangeIndexMapPtr m_pRangeIndices;
ExtRefListenerPtr m_pExtRefListener;
css::uno::Reference < css::chart2::data::XDataProvider > m_xDataProvider;
- SfxItemPropertySet m_aPropSet;
+ SfxItemPropertySet const m_aPropSet;
std::unique_ptr<HiddenRangeListener> m_pHiddenListener;
diff --git a/sc/inc/chartlis.hxx b/sc/inc/chartlis.hxx
index a03fa57457ef..4541e5c05ba3 100644
--- a/sc/inc/chartlis.hxx
+++ b/sc/inc/chartlis.hxx
@@ -64,7 +64,7 @@ private:
std::unique_ptr<ExternalRefListener> mpExtRefListener;
std::unique_ptr<std::vector<ScTokenRef> > mpTokens;
- OUString maName;
+ OUString const maName;
std::unique_ptr<ScChartUnoData> pUnoData;
ScDocument* mpDoc;
bool bUsed:1; // for ScChartListenerCollection::FreeUnused
diff --git a/sc/inc/chartpos.hxx b/sc/inc/chartpos.hxx
index 0069b1a80c50..ac79b8fb8ee8 100644
--- a/sc/inc/chartpos.hxx
+++ b/sc/inc/chartpos.hxx
@@ -37,9 +37,9 @@ class ScChartPositionMap
std::unique_ptr<std::unique_ptr<ScAddress>[]> ppData;
std::unique_ptr<std::unique_ptr<ScAddress>[]> ppColHeader;
std::unique_ptr<std::unique_ptr<ScAddress>[]> ppRowHeader;
- sal_uLong nCount;
- SCCOL nColCount;
- SCROW nRowCount;
+ sal_uLong const nCount;
+ SCCOL const nColCount;
+ SCROW const nRowCount;
ScChartPositionMap( SCCOL nChartCols, SCROW nChartRows,
SCCOL nColAdd, // header columns
@@ -103,7 +103,7 @@ class ScDocument;
class ScChartPositioner final // only parameter struct
{
ScRangeListRef aRangeListRef;
- ScDocument* pDocument;
+ ScDocument* const pDocument;
std::unique_ptr<ScChartPositionMap> pPositionMap;
ScChartGlue eGlue;
SCCOL nStartCol;
diff --git a/sc/inc/chartuno.hxx b/sc/inc/chartuno.hxx
index 1dd16cf7a224..801a9d99db93 100644
--- a/sc/inc/chartuno.hxx
+++ b/sc/inc/chartuno.hxx
@@ -47,7 +47,7 @@ class ScChartsObj : public cppu::WeakImplHelper<
{
private:
ScDocShell* pDocShell;
- SCTAB nTab; // Charts are per sheet
+ SCTAB const nTab; // Charts are per sheet
ScChartObj* GetObjectByIndex_Impl(long nIndex) const;
ScChartObj* GetObjectByName_Impl(const OUString& aName) const;
@@ -105,8 +105,8 @@ class ScChartObj : public ::cppu::BaseMutex
{
private:
ScDocShell* pDocShell;
- SCTAB nTab; // Charts are per sheet
- OUString aChartName;
+ SCTAB const nTab; // Charts are per sheet
+ OUString const aChartName;
void Update_Impl( const ScRangeListRef& rRanges, bool bColHeaders, bool bRowHeaders );
void GetData_Impl( ScRangeListRef& rRanges, bool& rColHeaders, bool& rRowHeaders ) const;
diff --git a/sc/inc/chgtrack.hxx b/sc/inc/chgtrack.hxx
index e39920bfe5c0..83caceac4262 100644
--- a/sc/inc/chgtrack.hxx
+++ b/sc/inc/chgtrack.hxx
@@ -105,7 +105,7 @@ protected:
ScChangeActionLinkEntry* pNext;
ScChangeActionLinkEntry** ppPrev;
- ScChangeAction* pAction;
+ ScChangeAction* const pAction;
ScChangeActionLinkEntry* pLink;
public:
@@ -364,7 +364,7 @@ class ScChangeActionIns : public ScChangeAction
{
friend class ScChangeTrack;
- bool mbEndOfList; /// whether or not a row was auto-inserted at the bottom.
+ bool const mbEndOfList; /// whether or not a row was auto-inserted at the bottom.
ScChangeActionIns( const ScRange& rRange, bool bEndOfList = false );
@@ -402,8 +402,8 @@ class ScChangeActionDelMoveEntry : public ScChangeActionLinkEntry
friend class ScChangeActionDel;
friend class ScChangeTrack;
- short nCutOffFrom;
- short nCutOffTo;
+ short const nCutOffFrom;
+ short const nCutOffTo;
inline ScChangeActionDelMoveEntry(
ScChangeActionDelMoveEntry** ppPrevP,
diff --git a/sc/inc/clipcontext.hxx b/sc/inc/clipcontext.hxx
index 629d6a2b22dc..f2a7af56818b 100644
--- a/sc/inc/clipcontext.hxx
+++ b/sc/inc/clipcontext.hxx
@@ -51,9 +51,9 @@ class CopyFromClipContext : public ClipContextBase
SCTAB mnTabStart;
SCTAB mnTabEnd;
ScDocument& mrDestDoc;
- ScDocument* mpRefUndoDoc;
+ ScDocument* const mpRefUndoDoc;
ScDocument* mpClipDoc;
- InsertDeleteFlags mnInsertFlag;
+ InsertDeleteFlags const mnInsertFlag;
InsertDeleteFlags mnDeleteFlag;
std::vector<ScCellValue> maSingleCells;
@@ -62,9 +62,9 @@ class CopyFromClipContext : public ClipContextBase
std::vector<const ScPostIt*> maSingleNotes;
ScConditionalFormatList* mpCondFormatList;
- bool mbAsLink:1;
- bool mbSkipAttrForEmptyCells:1;
- bool mbCloneNotes:1;
+ bool const mbAsLink:1;
+ bool const mbSkipAttrForEmptyCells:1;
+ bool const mbCloneNotes:1;
bool mbTableProtected:1;
public:
@@ -132,7 +132,7 @@ public:
class CopyToClipContext : public ClipContextBase
{
- bool mbKeepScenarioFlags:1;
+ bool const mbKeepScenarioFlags:1;
public:
CopyToClipContext(ScDocument& rDoc, bool bKeepScenarioFlags);
diff --git a/sc/inc/colorscale.hxx b/sc/inc/colorscale.hxx
index aa44ed87207e..22ae90092a86 100644
--- a/sc/inc/colorscale.hxx
+++ b/sc/inc/colorscale.hxx
@@ -214,8 +214,8 @@ enum ScIconSetType
struct ScIconSetMap {
const char* pName;
- ScIconSetType eType;
- sal_Int32 nElements;
+ ScIconSetType const eType;
+ sal_Int32 const nElements;
};
class SC_DLLPUBLIC ScColorFormat : public ScFormatEntry
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx
index 3692a3a188ed..915b1aa22644 100644
--- a/sc/inc/column.hxx
+++ b/sc/inc/column.hxx
@@ -125,7 +125,7 @@ class ScColumn
// Broadcasters for formula cells.
sc::BroadcasterStoreType maBroadcasters;
- sc::CellStoreEvent maCellsEvent;
+ sc::CellStoreEvent const maCellsEvent;
// Cell values.
sc::CellStoreType maCells;
diff --git a/sc/inc/columniterator.hxx b/sc/inc/columniterator.hxx
index b62510ac380a..51270f363ea7 100644
--- a/sc/inc/columniterator.hxx
+++ b/sc/inc/columniterator.hxx
@@ -66,7 +66,7 @@ namespace sc {
class ColumnIterator
{
CellStoreType::const_position_type maPos;
- CellStoreType::const_position_type maPosEnd;
+ CellStoreType::const_position_type const maPosEnd;
bool mbComplete;
public:
diff --git a/sc/inc/columnspanset.hxx b/sc/inc/columnspanset.hxx
index 4eb83b916deb..a62bf6aec9f9 100644
--- a/sc/inc/columnspanset.hxx
+++ b/sc/inc/columnspanset.hxx
@@ -27,8 +27,8 @@ class SingleColumnSpanSet;
struct RowSpan
{
- SCROW mnRow1;
- SCROW mnRow2;
+ SCROW const mnRow1;
+ SCROW const mnRow2;
RowSpan(SCROW nRow1, SCROW nRow2);
};
@@ -62,7 +62,7 @@ private:
typedef std::vector<std::unique_ptr<ColumnType>> TableType;
std::vector<std::unique_ptr<TableType>> maTables;
- bool mbInit;
+ bool const mbInit;
ColumnType& getColumn(SCTAB nTab, SCCOL nCol);
diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx
index 5d8f10a8de4e..c7471e4827a2 100644
--- a/sc/inc/compiler.hxx
+++ b/sc/inc/compiler.hxx
@@ -124,13 +124,13 @@ public:
} name;
struct {
sal_uInt16 nIndex;
- ScTableRefToken::Item eItem;
- } table;
+ ScTableRefToken::Item const eItem;
+ } const table;
struct {
rtl_uString* mpData;
rtl_uString* mpDataIgnoreCase;
} sharedstring;
- ScMatrix* pMat;
+ ScMatrix* const pMat;
FormulaError nError;
short nJump[ FORMULA_MAXJUMPCOUNT + 1 ]; // If/Chose token
};
@@ -291,7 +291,7 @@ private:
struct TableRefEntry
{
- ScTokenRef mxToken;
+ ScTokenRef const mxToken;
sal_uInt16 mnLevel;
TableRefEntry( formula::FormulaToken* p ) : mxToken(p), mnLevel(0) {}
};
@@ -303,9 +303,9 @@ private:
{
PendingImplicitIntersectionOptimization(formula::FormulaToken** p, formula::FormulaToken* o)
: parameterLocation( p ), parameter( *p ), operation( o ) {}
- formula::FormulaToken** parameterLocation;
- formula::FormulaTokenRef parameter;
- formula::FormulaTokenRef operation;
+ formula::FormulaToken** const parameterLocation;
+ formula::FormulaTokenRef const parameter;
+ formula::FormulaTokenRef const operation;
};
std::vector< PendingImplicitIntersectionOptimization > mPendingImplicitIntersectionOptimizations;
std::set<formula::FormulaTokenRef> mUnhandledPossibleImplicitIntersections;
diff --git a/sc/inc/confuno.hxx b/sc/inc/confuno.hxx
index 0d1f5a7919d0..6aa970e3efcf 100644
--- a/sc/inc/confuno.hxx
+++ b/sc/inc/confuno.hxx
@@ -35,7 +35,7 @@ class ScDocumentConfiguration : public cppu::WeakImplHelper<
{
private:
ScDocShell* pDocShell;
- SfxItemPropertySet aPropSet;
+ SfxItemPropertySet const aPropSet;
public:
ScDocumentConfiguration(ScDocShell* pDocShell);
diff --git a/sc/inc/dapiuno.hxx b/sc/inc/dapiuno.hxx
index 619585224f08..872745086d98 100644
--- a/sc/inc/dapiuno.hxx
+++ b/sc/inc/dapiuno.hxx
@@ -85,7 +85,7 @@ class ScDataPilotTablesObj : public cppu::WeakImplHelper<
{
private:
ScDocShell* pDocShell;
- SCTAB nTab;
+ SCTAB const nTab;
ScDataPilotTableObj* GetObjectByIndex_Impl( sal_Int32 nIndex );
ScDataPilotTableObj* GetObjectByName_Impl(const OUString& aName);
@@ -138,7 +138,7 @@ class ScDataPilotDescriptorBase : public css::sheet::XDataPilotDescriptor,
public SfxListener
{
private:
- SfxItemPropertySet maPropSet;
+ SfxItemPropertySet const maPropSet;
ScDocShell* pDocShell;
public:
@@ -388,7 +388,7 @@ private:
ScDataPilotFieldObj* GetObjectByName_Impl( const OUString& rName ) const;
private:
- css::uno::Any maOrient; /// Field orientation, no value = all fields.
+ css::uno::Any const maOrient; /// Field orientation, no value = all fields.
};
typedef ::cppu::WeakImplHelper
@@ -480,7 +480,7 @@ public:
private:
css::uno::Reference< css::container::XIndexAccess >
mxItems;
- SfxItemPropertySet maPropSet;
+ SfxItemPropertySet const maPropSet;
css::uno::Any maOrient;
};
@@ -727,7 +727,7 @@ public:
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
private:
- SfxItemPropertySet maPropSet;
+ SfxItemPropertySet const maPropSet;
sal_Int32 mnIndex;
};
diff --git a/sc/inc/datamapper.hxx b/sc/inc/datamapper.hxx
index c1da6ff83eb4..27bb011521cf 100644
--- a/sc/inc/datamapper.hxx
+++ b/sc/inc/datamapper.hxx
@@ -65,8 +65,6 @@ private:
ScOrcusImportXMLParam maParam;
- double mnUpdateFrequency;
-
std::shared_ptr<DataProvider> mpDataProvider;
std::shared_ptr<ScDBDataManager> mpDBDataManager;
diff --git a/sc/inc/datauno.hxx b/sc/inc/datauno.hxx
index 5e5037d7cdc8..95b79b220243 100644
--- a/sc/inc/datauno.hxx
+++ b/sc/inc/datauno.hxx
@@ -114,7 +114,7 @@ class ScSubTotalDescriptorBase : public cppu::WeakImplHelper<
css::lang::XServiceInfo >
{
private:
- SfxItemPropertySet aPropSet;
+ SfxItemPropertySet const aPropSet;
ScSubTotalFieldObj* GetObjectByIndex_Impl(sal_uInt16 nIndex);
@@ -283,7 +283,7 @@ class ScFilterDescriptorBase : public cppu::WeakImplHelper<
public SfxListener
{
private:
- SfxItemPropertySet aPropSet;
+ SfxItemPropertySet const aPropSet;
ScDocShell* pDocSh;
public:
@@ -405,11 +405,11 @@ class ScDatabaseRangeObj : public cppu::WeakImplHelper<
private:
ScDocShell* pDocShell;
OUString aName;
- SfxItemPropertySet aPropSet;
+ SfxItemPropertySet const aPropSet;
std::vector< css::uno::Reference< css::util::XRefreshListener > >
aRefreshListeners;
- bool bIsUnnamed;
- SCTAB aTab;
+ bool const bIsUnnamed;
+ SCTAB const aTab;
private:
ScDBData* GetDBData_Impl() const;
diff --git a/sc/inc/defaultsoptions.hxx b/sc/inc/defaultsoptions.hxx
index caafc6dfe152..3bfcb0dd593a 100644
--- a/sc/inc/defaultsoptions.hxx
+++ b/sc/inc/defaultsoptions.hxx
@@ -54,7 +54,7 @@ public:
const ScDefaultsOptions& GetDefaultsOptions() const { return theOptions; }
private:
- ScDefaultsOptions theOptions;
+ ScDefaultsOptions const theOptions;
};
// config item
diff --git a/sc/inc/defltuno.hxx b/sc/inc/defltuno.hxx
index 6fa01fbcd104..eaf88b049049 100644
--- a/sc/inc/defltuno.hxx
+++ b/sc/inc/defltuno.hxx
@@ -37,7 +37,7 @@ class ScDocDefaultsObj : public ::cppu::WeakImplHelper<
{
private:
ScDocShell* pDocShell;
- SfxItemPropertyMap aPropertyMap;
+ SfxItemPropertyMap const aPropertyMap;
void ItemsChanged();
diff --git a/sc/inc/detdata.hxx b/sc/inc/detdata.hxx
index abe2d2a57d62..688fff0b490a 100644
--- a/sc/inc/detdata.hxx
+++ b/sc/inc/detdata.hxx
@@ -37,7 +37,7 @@ enum ScDetOpType
class ScDetOpData
{
ScAddress aPos;
- ScDetOpType eOperation;
+ ScDetOpType const eOperation;
public:
ScDetOpData( const ScAddress& rP, ScDetOpType eOp ) :
diff --git a/sc/inc/detfunc.hxx b/sc/inc/detfunc.hxx
index e0afe1ce8eb0..aa4f88e3d685 100644
--- a/sc/inc/detfunc.hxx
+++ b/sc/inc/detfunc.hxx
@@ -53,7 +53,7 @@ class SC_DLLPUBLIC ScDetectiveFunc
static bool bColorsInitialized;
ScDocument* pDoc;
- SCTAB nTab;
+ SCTAB const nTab;
enum class DrawPosMode
{
diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx
index 30d93379eae3..77541cec1511 100644
--- a/sc/inc/dociter.hxx
+++ b/sc/inc/dociter.hxx
@@ -61,11 +61,11 @@ class ScValueIterator // walk through all values in an area
SCCOL mnCol;
SCTAB mnTab;
SCROW nAttrEndRow;
- SubtotalFlags mnSubTotalFlags;
+ SubtotalFlags const mnSubTotalFlags;
SvNumFormatType nNumFmtType;
bool bNumValid;
- bool bCalcAsShown;
- bool bTextAsZero;
+ bool const bCalcAsShown;
+ bool const bTextAsZero;
const sc::CellStoreType* mpCells;
PositionType maCurPos;
@@ -147,12 +147,12 @@ private:
const ScAttrArray* pAttrArray;
sal_uInt32 nNumFormat; // for CalcAsShown
sal_uInt32 nNumFmtIndex;
- SCCOL nCol;
+ SCCOL const nCol;
SCROW nRow;
SCROW nAttrEndRow;
- SCTAB nTab;
+ SCTAB const nTab;
SvNumFormatType nNumFmtType;
- bool bCalcAsShown;
+ bool const bCalcAsShown;
};
class DataAccessMatrix : public DataAccess
@@ -213,7 +213,7 @@ class ScCellIterator
ScAddress maCurPos;
PositionType maCurColPos;
- SubtotalFlags mnSubTotalFlags;
+ SubtotalFlags const mnSubTotalFlags;
ScRefCellValue maCurCell;
@@ -370,9 +370,9 @@ class ScDocAttrIterator // all attribute areas
private:
ScDocument* pDoc;
SCTAB nTab;
- SCCOL nEndCol;
- SCROW nStartRow;
- SCROW nEndRow;
+ SCCOL const nEndCol;
+ SCROW const nStartRow;
+ SCROW const nEndRow;
SCCOL nCol;
std::unique_ptr<ScAttrIterator>
pColIter;
@@ -391,9 +391,9 @@ class ScAttrRectIterator // all attribute areas, including areas stre
private:
ScDocument* pDoc;
SCTAB nTab;
- SCCOL nEndCol;
- SCROW nStartRow;
- SCROW nEndRow;
+ SCCOL const nEndCol;
+ SCROW const nStartRow;
+ SCROW const nEndRow;
SCCOL nIterStartCol;
SCCOL nIterEndCol;
std::unique_ptr<ScAttrIterator>
@@ -422,10 +422,10 @@ class ScHorizontalCellIterator // walk through all non empty cells in an ar
ScDocument* pDoc;
SCTAB mnTab;
- SCCOL nStartCol;
- SCCOL nEndCol;
- SCROW nStartRow;
- SCROW nEndRow;
+ SCCOL const nStartCol;
+ SCCOL const nEndCol;
+ SCROW const nStartRow;
+ SCROW const nEndRow;
SCCOL mnCol;
SCROW mnRow;
ScRefCellValue maCurCell;
@@ -462,7 +462,7 @@ private:
SCROW nCurRow;
SCTAB nCurTab;
SCROW nAttrEndRow;
- bool bCalcAsShown;
+ bool const bCalcAsShown;
public:
@@ -480,10 +480,10 @@ class ScHorizontalAttrIterator
private:
ScDocument* pDoc;
SCTAB nTab;
- SCCOL nStartCol;
- SCROW nStartRow;
- SCCOL nEndCol;
- SCROW nEndRow;
+ SCCOL const nStartCol;
+ SCROW const nStartRow;
+ SCCOL const nEndCol;
+ SCROW const nEndRow;
std::unique_ptr<SCROW[]> pNextEnd;
std::unique_ptr<SCCOL[]> pHorizEnd;
@@ -558,7 +558,7 @@ public:
private:
::std::set<SCROW>& mrBreaks;
::std::set<SCROW>::const_iterator maItr;
- ::std::set<SCROW>::const_iterator maEnd;
+ ::std::set<SCROW>::const_iterator const maEnd;
};
class ScDocRowHeightUpdater
@@ -588,8 +588,8 @@ private:
private:
ScDocument& mrDoc;
VclPtr<OutputDevice> mpOutDev;
- double mfPPTX;
- double mfPPTY;
+ double const mfPPTX;
+ double const mfPPTY;
const ::std::vector<TabRanges>* mpTabRangesArray;
};
diff --git a/sc/inc/docoptio.hxx b/sc/inc/docoptio.hxx
index 436c9975ad6d..1a488abcaf0a 100644
--- a/sc/inc/docoptio.hxx
+++ b/sc/inc/docoptio.hxx
@@ -151,7 +151,7 @@ public:
const ScDocOptions& GetDocOptions() const { return theOptions; }
private:
- ScDocOptions theOptions;
+ ScDocOptions const theOptions;
};
// Config Item containing document options
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 96b28d4d13f0..bf8790c6537d 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -457,7 +457,7 @@ private:
osl::Mutex mScLookupMutex; // protection for thread-unsafe parts of handling ScLookup
std::vector<ScLookupCacheMap*> mThreadStoredScLookupCaches; // temporarily stored for computation threads
- sal_uInt16 nSrcVer; // file version (load/save)
+ static const sal_uInt16 nSrcVer; // file version (load/save)
sal_uInt16 nFormulaTrackCount;
HardRecalcState eHardRecalcState; // off, temporary, eternal
SCTAB nVisibleTab; // for OLE etc., don't use inside ScDocument
@@ -471,9 +471,9 @@ private:
// AutoCalcShellDisabled and TrackFormulas
bool bForcedFormulaPending;
bool bCalculatingFormulaTree;
- bool bIsClip;
- bool bIsUndo;
- bool bIsFunctionAccess;
+ bool const bIsClip;
+ bool const bIsUndo;
+ bool const bIsFunctionAccess;
bool bIsVisible; // set from view ctor
bool bIsEmbedded; // display/adjust Embedded area?
@@ -1957,7 +1957,7 @@ public:
SC_DLLPUBLIC void CopyStdStylesFrom( const ScDocument* pSrcDoc );
- sal_uLong GetSrcVersion() const { return nSrcVer; }
+ static sal_uInt16 GetSrcVersion() { return nSrcVer; }
void SetSrcCharSet( rtl_TextEncoding eNew ) { eSrcSet = eNew; }
void UpdateFontCharSet();
diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx
index 630caed76206..0e68afbd0058 100644
--- a/sc/inc/docuno.hxx
+++ b/sc/inc/docuno.hxx
@@ -91,7 +91,7 @@ class SC_DLLPUBLIC ScModelObj : public SfxBaseModel,
public css::sheet::opencl::XOpenCLSelection
{
private:
- SfxItemPropertySet aPropSet;
+ SfxItemPropertySet const aPropSet;
ScDocShell* pDocShell;
std::unique_ptr<ScPrintFuncCache> pPrintFuncCache;
std::unique_ptr<ScPrintUIOptions> pPrinterOptions;
@@ -506,9 +506,9 @@ class ScTableColumnsObj : public cppu::WeakImplHelper<
{
private:
ScDocShell* pDocShell;
- SCTAB nTab;
- SCCOL nStartCol;
- SCCOL nEndCol;
+ SCTAB const nTab;
+ SCCOL const nStartCol;
+ SCCOL const nEndCol;
ScTableColumnObj* GetObjectByIndex_Impl(sal_Int32 nIndex) const;
ScTableColumnObj* GetObjectByName_Impl(const OUString& aName) const;
@@ -572,9 +572,9 @@ class ScTableRowsObj : public cppu::WeakImplHelper<
{
private:
ScDocShell* pDocShell;
- SCTAB nTab;
- SCROW nStartRow;
- SCROW nEndRow;
+ SCTAB const nTab;
+ SCROW const nStartRow;
+ SCROW const nEndRow;
ScTableRowObj* GetObjectByIndex_Impl(sal_Int32 nIndex) const;
@@ -659,7 +659,7 @@ class ScAnnotationsObj : public cppu::WeakImplHelper<
{
private:
ScDocShell* pDocShell;
- SCTAB nTab; ///< Collection belongs to the sheet
+ SCTAB const nTab; ///< Collection belongs to the sheet
bool GetAddressByIndex_Impl( sal_Int32 nIndex, ScAddress& rPos ) const;
ScAnnotationObj* GetObjectByIndex_Impl( sal_Int32 nIndex ) const;
@@ -702,7 +702,7 @@ class ScScenariosObj : public cppu::WeakImplHelper<
{
private:
ScDocShell* pDocShell;
- SCTAB nTab;
+ SCTAB const nTab;
bool GetScenarioIndex_Impl( const OUString& rName, SCTAB& rIndex );
ScTableSheetObj* GetObjectByIndex_Impl(sal_Int32 nIndex);
diff --git a/sc/inc/dpfilteredcache.hxx b/sc/inc/dpfilteredcache.hxx
index 05d482296b7b..c88d8df716d1 100644
--- a/sc/inc/dpfilteredcache.hxx
+++ b/sc/inc/dpfilteredcache.hxx
@@ -69,7 +69,7 @@ public:
virtual std::vector<ScDPItemData> getMatchValues() const override;
private:
- ScDPItemData maItem;
+ ScDPItemData const maItem;
};
/** multi-item (group) filter. */
diff --git a/sc/inc/dpgroup.hxx b/sc/inc/dpgroup.hxx
index 2e0517d993d6..149df70278cd 100644
--- a/sc/inc/dpgroup.hxx
+++ b/sc/inc/dpgroup.hxx
@@ -124,7 +124,7 @@ class ScDPGroupTableData : public ScDPTableData
ScDPGroupDimensionVec aGroups;
std::unique_ptr<ScDPNumGroupDimension[]>
pNumGroups; // array[nSourceCount]
- ScDocument* pDoc;
+ ScDocument* const pDoc;
std::unordered_set< OUString >
aGroupNames;
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx
index 5b69aaca9f2a..eb5467d30479 100644
--- a/sc/inc/dpobject.hxx
+++ b/sc/inc/dpobject.hxx
@@ -274,7 +274,7 @@ public:
typedef std::vector<ScRange> RangeIndexType;
CachesType m_Caches;
RangeIndexType maRanges;
- ScDocument* mpDoc;
+ ScDocument* const mpDoc;
public:
SheetCaches(ScDocument* pDoc);
bool hasCache(const ScRange& rRange) const;
@@ -301,7 +301,7 @@ public:
friend class ScDPCollection;
typedef ::std::map<OUString, std::unique_ptr<ScDPCache>> CachesType;
CachesType m_Caches;
- ScDocument* mpDoc;
+ ScDocument* const mpDoc;
public:
NameCaches(ScDocument* pDoc);
bool hasCache(const OUString& rName) const;
@@ -322,9 +322,9 @@ public:
*/
struct DBType
{
- sal_Int32 mnSdbType;
- OUString maDBName;
- OUString maCommand;
+ sal_Int32 const mnSdbType;
+ OUString const maDBName;
+ OUString const maCommand;
DBType(sal_Int32 nSdbType, const OUString& rDBName, const OUString& rCommand);
struct less
@@ -341,7 +341,7 @@ public:
friend class ScDPCollection;
typedef ::std::map<DBType, std::unique_ptr<ScDPCache>, DBType::less> CachesType;
CachesType m_Caches;
- ScDocument* mpDoc;
+ ScDocument* const mpDoc;
public:
DBCaches(ScDocument* pDoc);
bool hasCache(sal_Int32 nSdbType, const OUString& rDBName, const OUString& rCommand) const;
diff --git a/sc/inc/dpoutput.hxx b/sc/inc/dpoutput.hxx
index 51fb47b0f2d0..ab4a63e2a215 100644
--- a/sc/inc/dpoutput.hxx
+++ b/sc/inc/dpoutput.hxx
@@ -76,7 +76,7 @@ private:
SCROW nDataStartRow;
SCCOL nTabEndCol;
SCROW nTabEndRow;
- bool bDoFilter:1;
+ bool const bDoFilter:1;
bool bResultsError:1;
bool bSizesValid:1;
bool bSizeOverflow:1;
diff --git a/sc/inc/dpoutputgeometry.hxx b/sc/inc/dpoutputgeometry.hxx
index 3ffb052d7454..59ab88bc917d 100644
--- a/sc/inc/dpoutputgeometry.hxx
+++ b/sc/inc/dpoutputgeometry.hxx
@@ -55,13 +55,13 @@ private:
void adjustFieldsForDataLayout(sal_uInt32& rColumnFields, sal_uInt32& rRowFields) const;
private:
- ScRange maOutRange;
+ ScRange const maOutRange;
sal_uInt32 mnRowFields; /// number of row fields
sal_uInt32 mnColumnFields;
sal_uInt32 mnPageFields;
sal_uInt32 mnDataFields;
FieldType meDataLayoutType;
- bool mbShowFilter;
+ bool const mbShowFilter;
bool mbHeaderLayout;
bool mbCompactMode; // MSO only setting
};
diff --git a/sc/inc/dpresfilter.hxx b/sc/inc/dpresfilter.hxx
index ffccaa6dddc0..7fed71374dd4 100644
--- a/sc/inc/dpresfilter.hxx
+++ b/sc/inc/dpresfilter.hxx
@@ -26,12 +26,12 @@ namespace com { namespace sun { namespace star { namespace sheet {
struct ScDPResultFilter
{
- OUString maDimName;
+ OUString const maDimName;
OUString maValueName;
OUString maValue;
bool mbHasValue:1;
- bool mbDataLayout:1;
+ bool const mbDataLayout:1;
ScDPResultFilter(const OUString& rDimName, bool bDataLayout);
};
diff --git a/sc/inc/dptabres.hxx b/sc/inc/dptabres.hxx
index 990fbe8172e8..da659809280c 100644
--- a/sc/inc/dptabres.hxx
+++ b/sc/inc/dptabres.hxx
@@ -60,8 +60,8 @@ class ScDPInitState
public:
struct Member
{
- long mnSrcIndex;
- SCROW mnNameIndex;
+ long const mnSrcIndex;
+ SCROW const mnNameIndex;
Member(long nSrcIndex, SCROW nNameIndex);
};
@@ -125,8 +125,8 @@ public:
void RemoveRowIndex();
private:
- ScDPResultMember* pColResRoot;
- ScDPResultMember* pRowResRoot;
+ ScDPResultMember* const pColResRoot;
+ ScDPResultMember* const pRowResRoot;
mutable IndexArray maColVisible;
mutable IndexArray maColSorted;
@@ -137,7 +137,7 @@ private:
struct ScDPRelativePos
{
long nBasePos; // simple count, without sort order applied
- long nDirection;
+ long const nDirection;
ScDPRelativePos( long nBase, long nDir );
};
@@ -248,7 +248,7 @@ private:
const ::std::vector<ScDPDimension*>& mppDim;
const ::std::vector<ScDPLevel*>& mppLev;
- bool mbRow:1;
+ bool const mbRow:1;
bool mbInitChild:1;
bool mbAllChildren:1;
public:
@@ -331,11 +331,11 @@ class ScDPResultMember
{
private:
const ScDPResultData* pResultData;
- ScDPParentDimData aParentDimData;
+ ScDPParentDimData const aParentDimData;
std::unique_ptr<ScDPResultDimension> pChildDimension;
std::unique_ptr<ScDPDataMember> pDataRoot;
bool bHasElements:1;
- bool bForceSubTotal:1;
+ bool const bForceSubTotal:1;
bool bHasHiddenDetails:1;
bool bInitialized:1;
bool bAutoHidden:1;
diff --git a/sc/inc/dptabsrc.hxx b/sc/inc/dptabsrc.hxx
index 8024eaa25738..3d5d9778da90 100644
--- a/sc/inc/dptabsrc.hxx
+++ b/sc/inc/dptabsrc.hxx
@@ -267,7 +267,7 @@ class ScDPDimension : public cppu::WeakImplHelper<
css::lang::XServiceInfo >
{
ScDPSource* pSource;
- long nDim; // dimension index (== column ID)
+ long const nDim; // dimension index (== column ID)
rtl::Reference<ScDPHierarchies> mxHierarchies;
ScGeneralFunction nFunction;
OUString aName; // if empty, take from source
@@ -348,8 +348,8 @@ class ScDPHierarchies : public cppu::WeakImplHelper<
css::lang::XServiceInfo >
{
private:
- ScDPSource* pSource;
- long nDim;
+ ScDPSource* const pSource;
+ long const nDim;
// date columns have 3 hierarchies (flat/quarter/week), other columns only one
// #i52547# don't offer the incomplete date hierarchy implementation
static const long nHierCount = 1;
@@ -384,9 +384,9 @@ class ScDPHierarchy : public cppu::WeakImplHelper<
css::lang::XServiceInfo >
{
private:
- ScDPSource* pSource;
- long nDim;
- long nHier;
+ ScDPSource* const pSource;
+ long const nDim;
+ long const nHier;
rtl::Reference<ScDPLevels> mxLevels;
public:
@@ -415,8 +415,8 @@ class ScDPLevels : public cppu::WeakImplHelper<
{
private:
ScDPSource* pSource;
- long nDim;
- long nHier;
+ long const nDim;
+ long const nHier;
long nLevCount;
std::unique_ptr<rtl::Reference<ScDPLevel>[]>
ppLevs;
@@ -452,9 +452,9 @@ class ScDPLevel : public cppu::WeakImplHelper<
{
private:
ScDPSource* pSource;
- long nDim;
- long nHier;
- long nLev;
+ long const nDim;
+ long const nHier;
+ long const nLev;
rtl::Reference<ScDPMembers> mxMembers;
css::uno::Sequence<sal_Int16> aSubTotals;
css::sheet::DataPilotFieldSortInfo aSortInfo; // stored user settings
@@ -556,7 +556,7 @@ private:
ScDPSource* pSource;
long nDim;
long nHier;
- long nLev;
+ long const nLev;
long nMbrCount;
mutable MembersType maMembers;
mutable ScDPMembersHashMap aHashMap;
@@ -603,10 +603,10 @@ class ScDPMember : public cppu::WeakImplHelper<
private:
ScDPSource* pSource;
long nDim;
- long nHier;
- long nLev;
+ long const nHier;
+ long const nLev;
- SCROW mnDataId;
+ SCROW const mnDataId;
boost::optional<OUString> mpLayoutName;
sal_Int32 nPosition; // manual sorting
diff --git a/sc/inc/drwlayer.hxx b/sc/inc/drwlayer.hxx
index f7ea09fbea35..738ee08b6b37 100644
--- a/sc/inc/drwlayer.hxx
+++ b/sc/inc/drwlayer.hxx
@@ -35,7 +35,7 @@ class ScMarkData;
class ScTabDeletedHint : public SfxHint
{
private:
- SCTAB nTab;
+ SCTAB const nTab;
public:
ScTabDeletedHint( SCTAB nTabNo );
virtual ~ScTabDeletedHint() override;
@@ -46,7 +46,7 @@ public:
class ScTabSizeChangedHint : public SfxHint
{
private:
- SCTAB nTab;
+ SCTAB const nTab;
public:
ScTabSizeChangedHint( SCTAB nTabNo );
virtual ~ScTabSizeChangedHint() override;
@@ -60,10 +60,10 @@ public:
class ScUndoObjData : public SdrUndoObj
{
private:
- ScAddress aOldStt;
- ScAddress aOldEnd;
- ScAddress aNewStt;
- ScAddress aNewEnd;
+ ScAddress const aOldStt;
+ ScAddress const aOldEnd;
+ ScAddress const aNewStt;
+ ScAddress const aNewEnd;
public:
ScUndoObjData( SdrObject* pObj, const ScAddress& rOS, const ScAddress& rOE,
const ScAddress& rNS, const ScAddress& rNE );
@@ -78,8 +78,8 @@ class ScUndoAnchorData : public SdrUndoObj
private:
bool mbWasCellAnchored;
bool mbWasResizeWithCell;
- ScDocument* mpDoc;
- SCTAB mnTab;
+ ScDocument* const mpDoc;
+ SCTAB const mnTab;
public:
ScUndoAnchorData( SdrObject* pObj, ScDocument* pDoc, SCTAB nTab );
virtual ~ScUndoAnchorData() override;
@@ -91,7 +91,7 @@ public:
class SC_DLLPUBLIC ScDrawLayer : public FmFormModel
{
private:
- OUString aName;
+ OUString const aName;
ScDocument* pDoc;
std::unique_ptr<SdrUndoGroup> pUndoGroup;
bool bRecording;
diff --git a/sc/inc/editdataarray.hxx b/sc/inc/editdataarray.hxx
index 0300f3f61d81..fd4ab6785d0c 100644
--- a/sc/inc/editdataarray.hxx
+++ b/sc/inc/editdataarray.hxx
@@ -50,9 +50,9 @@ public:
private:
std::unique_ptr<EditTextObject> mpOldData;
std::unique_ptr<EditTextObject> mpNewData;
- SCTAB mnTab;
- SCCOL mnCol;
- SCROW mnRow;
+ SCTAB const mnTab;
+ SCCOL const mnCol;
+ SCROW const mnRow;
};
diff --git a/sc/inc/editsrc.hxx b/sc/inc/editsrc.hxx
index a719230bb379..11af8707dc0d 100644
--- a/sc/inc/editsrc.hxx
+++ b/sc/inc/editsrc.hxx
@@ -96,7 +96,7 @@ class ScAnnotationEditSource : public SvxEditSource, public SfxListener
{
private:
ScDocShell* pDocShell;
- ScAddress aCellPos;
+ ScAddress const aCellPos;
std::unique_ptr<ScEditEngineDefaulter> pEditEngine;
std::unique_ptr<SvxEditEngineForwarder> pForwarder;
bool bDataValid;
@@ -118,7 +118,7 @@ public:
class ScSimpleEditSource : public SvxEditSource
{
private:
- SvxTextForwarder* pForwarder;
+ SvxTextForwarder* const pForwarder;
public:
ScSimpleEditSource( SvxTextForwarder* pForw );
diff --git a/sc/inc/editutil.hxx b/sc/inc/editutil.hxx
index a446b5cb385c..8d4a8a9fc282 100644
--- a/sc/inc/editutil.hxx
+++ b/sc/inc/editutil.hxx
@@ -37,14 +37,14 @@ class ScEditEngineDefaulter;
class ScEditUtil
{
ScDocument* pDoc;
- SCCOL nCol;
- SCROW nRow;
- SCTAB nTab;
- Point aScrPos;
+ SCCOL const nCol;
+ SCROW const nRow;
+ SCTAB const nTab;
+ Point const aScrPos;
VclPtr<OutputDevice> pDev; // MapMode has to be set
- double nPPTX;
- double nPPTY;
- Fraction aZoomX;
+ double const nPPTX;
+ double const nPPTY;
+ Fraction const aZoomX;
Fraction aZoomY;
public:
@@ -105,9 +105,9 @@ public:
class ScEnginePoolHelper
{
protected:
- SfxItemPool* pEnginePool;
+ SfxItemPool* const pEnginePool;
SfxItemSet* pDefaults;
- bool bDeleteEnginePool;
+ bool const bDeleteEnginePool;
bool bDeleteDefaults;
ScEnginePoolHelper( SfxItemPool* pEnginePool, bool bDeleteEnginePool );
@@ -201,7 +201,7 @@ struct ScHeaderFieldData
class SC_DLLPUBLIC ScFieldEditEngine : public ScEditEngineDefaulter
{
private:
- ScDocument* mpDoc;
+ ScDocument* const mpDoc;
bool bExecuteURL;
public:
diff --git a/sc/inc/eventuno.hxx b/sc/inc/eventuno.hxx
index eb85fd9e6fa4..2c420f8501e5 100644
--- a/sc/inc/eventuno.hxx
+++ b/sc/inc/eventuno.hxx
@@ -36,7 +36,7 @@ class ScSheetEventsObj : public cppu::WeakImplHelper<
{
private:
ScDocShell* mpDocShell;
- SCTAB mnTab;
+ SCTAB const mnTab;
public:
ScSheetEventsObj(ScDocShell* pDocSh, SCTAB nT);
diff --git a/sc/inc/externalrefmgr.hxx b/sc/inc/externalrefmgr.hxx
index f889c1406d59..0dee986d81c0 100644
--- a/sc/inc/externalrefmgr.hxx
+++ b/sc/inc/externalrefmgr.hxx
@@ -68,9 +68,9 @@ private:
ScExternalRefLink() = delete;
ScExternalRefLink(const ScExternalRefLink&) = delete;
- sal_uInt16 mnFileId;
+ sal_uInt16 const mnFileId;
OUString maFilterName;
- ScDocument* mpDoc;
+ ScDocument* const mpDoc;
bool mbDoRefresh;
};
@@ -392,7 +392,7 @@ public:
~ApiGuard();
private:
ScExternalRefManager* mpMgr;
- bool mbOldInteractionEnabled;
+ bool const mbOldInteractionEnabled;
};
private:
diff --git a/sc/inc/fielduno.hxx b/sc/inc/fielduno.hxx
index 85e641e326e5..9b6245131c85 100644
--- a/sc/inc/fielduno.hxx
+++ b/sc/inc/fielduno.hxx
@@ -60,7 +60,7 @@ class ScCellFieldsObj : public cppu::WeakImplHelper<
private:
css::uno::Reference<css::text::XTextRange> mxContent;
ScDocShell* pDocShell;
- ScAddress aCellPos;
+ ScAddress const aCellPos;
std::unique_ptr<ScEditSource> mpEditSource;
/// List of refresh listeners.
comphelper::OInterfaceContainerHelper2* mpRefreshListeners;
@@ -175,7 +175,7 @@ class ScEditFieldObj : public cppu::WeakImplHelper<
std::unique_ptr<ScEditSource> mpEditSource;
ESelection aSelection;
- sal_Int32 meType;
+ sal_Int32 const meType;
std::unique_ptr<SvxFieldData> mpData;
css::uno::Reference<css::text::XTextRange> mpContent;
diff --git a/sc/inc/fillinfo.hxx b/sc/inc/fillinfo.hxx
index 6b9ff623bf6a..850fb4738ae0 100644
--- a/sc/inc/fillinfo.hxx
+++ b/sc/inc/fillinfo.hxx
@@ -194,7 +194,7 @@ struct ScTableInfo
std::unique_ptr<RowInfo[]>
mpRowInfo;
SCSIZE mnArrCount;
- SCSIZE mnArrCapacity;
+ SCSIZE const mnArrCapacity;
bool mbPageMode;
explicit ScTableInfo(const SCSIZE capacity = 1024);
diff --git a/sc/inc/fmtuno.hxx b/sc/inc/fmtuno.hxx
index 267828795ecf..9d82f81c95cb 100644
--- a/sc/inc/fmtuno.hxx
+++ b/sc/inc/fmtuno.hxx
@@ -164,7 +164,7 @@ class ScTableValidationObj : public cppu::WeakImplHelper<
css::lang::XServiceInfo >
{
private:
- SfxItemPropertySet aPropSet;
+ SfxItemPropertySet const aPropSet;
ScConditionMode nMode;
OUString aExpr1;
OUString aExpr2;
diff --git a/sc/inc/formulagroup.hxx b/sc/inc/formulagroup.hxx
index 593beb8c4bca..877655210f9e 100644
--- a/sc/inc/formulagroup.hxx
+++ b/sc/inc/formulagroup.hxx
@@ -36,12 +36,12 @@ struct FormulaGroupEntry
union
{
ScFormulaCell* mpCell; // non-shared formula cell
- ScFormulaCell** mpCells; // pointer to the top formula cell in a shared group.
+ ScFormulaCell** const mpCells; // pointer to the top formula cell in a shared group.
};
- size_t mnRow;
- size_t mnLength;
- bool mbShared;
+ size_t const mnRow;
+ size_t const mnLength;
+ bool const mbShared;
FormulaGroupEntry( ScFormulaCell** pCells, size_t nRow, size_t nLength );
@@ -60,8 +60,8 @@ struct FormulaGroupContext
struct ColKey
{
- SCTAB mnTab;
- SCCOL mnCol;
+ SCTAB const mnTab;
+ SCCOL const mnCol;
struct Hash
{
diff --git a/sc/inc/formulaiter.hxx b/sc/inc/formulaiter.hxx
index 5a0775a8b056..aa92e78c7b65 100644
--- a/sc/inc/formulaiter.hxx
+++ b/sc/inc/formulaiter.hxx
@@ -33,7 +33,7 @@ class ScDetectiveRefIter
{
private:
formula::FormulaTokenArrayPlainIterator maIter;
- ScAddress aPos;
+ ScAddress const aPos;
public:
ScDetectiveRefIter( ScFormulaCell* pCell );
bool GetNextRef( ScRange& rRange );
diff --git a/sc/inc/formulalogger.hxx b/sc/inc/formulalogger.hxx
index 879418eab0b4..7d1dc59efdd6 100644
--- a/sc/inc/formulalogger.hxx
+++ b/sc/inc/formulalogger.hxx
@@ -39,7 +39,7 @@ namespace sc {
class FormulaLogger
{
std::unique_ptr<osl::File> mpLogFile;
- std::vector<OUString> maMessages;
+ std::vector<OUString> const maMessages;
sal_Int32 mnNestLevel = 0;
const ScFormulaCellGroup* mpLastGroup = nullptr;
diff --git a/sc/inc/formulaopt.hxx b/sc/inc/formulaopt.hxx
index 741eb4e98cb6..202f50c3e1d2 100644
--- a/sc/inc/formulaopt.hxx
+++ b/sc/inc/formulaopt.hxx
@@ -92,7 +92,7 @@ public:
const ScFormulaOptions& GetFormulaOptions() const { return theOptions; }
private:
- ScFormulaOptions theOptions;
+ ScFormulaOptions const theOptions;
};
// config item
diff --git a/sc/inc/formularesult.hxx b/sc/inc/formularesult.hxx
index eac70db65831..fea35eb49a31 100644
--- a/sc/inc/formularesult.hxx
+++ b/sc/inc/formularesult.hxx
@@ -35,7 +35,7 @@ struct FormulaResultValue
{
enum Type { Invalid, Value, String, Error };
- Type meType;
+ Type const meType;
double mfValue;
svl::SharedString maString;
diff --git a/sc/inc/funcdesc.hxx b/sc/inc/funcdesc.hxx
index 65ce16a7cf2e..c03917d76d0d 100644
--- a/sc/inc/funcdesc.hxx
+++ b/sc/inc/funcdesc.hxx
@@ -289,7 +289,7 @@ public:
private:
::std::vector<const ScFuncDesc*>* m_pCategory; /**< list of functions in this category */
mutable OUString m_sName; /**< name of this category */
- sal_uInt32 m_nCategory; /**< index number of this category */
+ sal_uInt32 const m_nCategory; /**< index number of this category */
};
#define SC_FUNCGROUP_COUNT ID_FUNCTION_GRP_ADDINS
diff --git a/sc/inc/funcuno.hxx b/sc/inc/funcuno.hxx
index 08a60c42467a..5efbbffd5878 100644
--- a/sc/inc/funcuno.hxx
+++ b/sc/inc/funcuno.hxx
@@ -61,7 +61,7 @@ class ScFunctionAccess : public cppu::WeakImplHelper<
private:
ScTempDocCache aDocCache;
std::unique_ptr<ScDocOptions> pOptions;
- SfxItemPropertyMap aPropertyMap;
+ SfxItemPropertyMap const aPropertyMap;
bool mbArray;
bool mbValid;
diff --git a/sc/inc/grouparealistener.hxx b/sc/inc/grouparealistener.hxx
index 04aa7c7582a2..283bc3124637 100644
--- a/sc/inc/grouparealistener.hxx
+++ b/sc/inc/grouparealistener.hxx
@@ -30,8 +30,8 @@ class FormulaGroupAreaListener : public SvtListener
const ScColumn* mpColumn;
SCROW mnTopCellRow;
SCROW mnGroupLen;
- bool mbStartFixed;
- bool mbEndFixed;
+ bool const mbStartFixed;
+ bool const mbEndFixed;
public:
diff --git a/sc/inc/hints.hxx b/sc/inc/hints.hxx
index f2b45cecdce3..55fc22c450b7 100644
--- a/sc/inc/hints.hxx
+++ b/sc/inc/hints.hxx
@@ -27,8 +27,8 @@
class SC_DLLPUBLIC ScPaintHint : public SfxHint
{
- ScRange aRange;
- PaintPartFlags nParts;
+ ScRange const aRange;
+ PaintPartFlags const nParts;
bool bPrint; // flag indicating whether print/preview if affected
public:
@@ -49,11 +49,11 @@ public:
class ScUpdateRefHint : public SfxHint
{
- UpdateRefMode eUpdateRefMode;
- ScRange aRange;
- SCCOL nDx;
- SCROW nDy;
- SCTAB nDz;
+ UpdateRefMode const eUpdateRefMode;
+ ScRange const aRange;
+ SCCOL const nDx;
+ SCROW const nDy;
+ SCTAB const nDz;
public:
ScUpdateRefHint( UpdateRefMode eMode, const ScRange& rR,
@@ -102,10 +102,10 @@ public:
class ScAutoStyleHint : public SfxHint
{
- ScRange aRange;
- OUString aStyle1;
- OUString aStyle2;
- sal_uLong nTimeout;
+ ScRange const aRange;
+ OUString const aStyle1;
+ OUString const aStyle2;
+ sal_uLong const nTimeout;
public:
ScAutoStyleHint( const ScRange& rR, const OUString& rSt1,
@@ -120,7 +120,7 @@ public:
class ScDBRangeRefreshedHint : public SfxHint
{
- ScImportParam aParam;
+ ScImportParam const aParam;
public:
ScDBRangeRefreshedHint( const ScImportParam& rP );
@@ -131,7 +131,7 @@ public:
class ScDataPilotModifiedHint : public SfxHint
{
- OUString maName;
+ OUString const maName;
public:
ScDataPilotModifiedHint( const OUString& rName );
diff --git a/sc/inc/linkuno.hxx b/sc/inc/linkuno.hxx
index 1570039607f9..38319c46b644 100644
--- a/sc/inc/linkuno.hxx
+++ b/sc/inc/linkuno.hxx
@@ -56,7 +56,7 @@ class ScSheetLinkObj : public cppu::WeakImplHelper<
public SfxListener
{
private:
- SfxItemPropertySet aPropSet;
+ SfxItemPropertySet const aPropSet;
ScDocShell* pDocShell;
OUString aFileName;
XRefreshListenerArr_Impl aRefreshListeners;
@@ -162,9 +162,9 @@ class ScAreaLinkObj : public cppu::WeakImplHelper<
public SfxListener
{
private:
- SfxItemPropertySet aPropSet;
- ScDocShell* pDocShell;
- size_t nPos;
+ SfxItemPropertySet const aPropSet;
+ ScDocShell* pDocShell;
+ size_t const nPos;
XRefreshListenerArr_Impl aRefreshListeners;
void Modify_Impl( const OUString* pNewFile, const OUString* pNewFilter,
@@ -275,10 +275,10 @@ class ScDDELinkObj : public cppu::WeakImplHelper<
public SfxListener
{
private:
- ScDocShell* pDocShell;
- OUString aAppl;
- OUString aTopic;
- OUString aItem;
+ ScDocShell* pDocShell;
+ OUString const aAppl;
+ OUString const aTopic;
+ OUString const aItem;
XRefreshListenerArr_Impl aRefreshListeners;
void Refreshed_Impl();
@@ -388,7 +388,7 @@ private:
private:
ScDocShell* mpDocShell;
ScExternalRefCache::TableTypeRef mpTable;
- size_t mnIndex;
+ size_t const mnIndex;
};
class ScExternalDocLinkObj : public cppu::WeakImplHelper< css::sheet::XExternalDocLink >
@@ -422,9 +422,9 @@ public:
virtual sal_Int32 SAL_CALL getTokenIndex() override;
private:
- ScDocShell* mpDocShell;
+ ScDocShell* const mpDocShell;
ScExternalRefManager* mpRefMgr;
- sal_uInt16 mnFileId;
+ sal_uInt16 const mnFileId;
};
/** This is the UNO API equivalent of ScExternalRefManager. */
@@ -459,7 +459,7 @@ private:
ScExternalDocLinksObj(const ScExternalDocLinksObj&) = delete;
private:
- ScDocShell* mpDocShell;
+ ScDocShell* const mpDocShell;
ScExternalRefManager* mpRefMgr;
};
diff --git a/sc/inc/listenercontext.hxx b/sc/inc/listenercontext.hxx
index ad413490b65d..26dd0eae949d 100644
--- a/sc/inc/listenercontext.hxx
+++ b/sc/inc/listenercontext.hxx
@@ -46,7 +46,7 @@ class EndListeningContext
ScDocument& mrDoc;
ColumnSpanSet maSet;
std::shared_ptr<ColumnBlockPositionSet> mpPosSet;
- ScTokenArray* mpOldCode;
+ ScTokenArray* const mpOldCode;
ScAddress maPosDelta; // Add this to get the old position prior to the move.
public:
diff --git a/sc/inc/lookupcache.hxx b/sc/inc/lookupcache.hxx
index 15ec15f086b1..cca7a52ad38c 100644
--- a/sc/inc/lookupcache.hxx
+++ b/sc/inc/lookupcache.hxx
@@ -142,9 +142,9 @@ private:
struct QueryKey
{
- SCROW mnRow;
- SCTAB mnTab;
- QueryOp meOp;
+ SCROW const mnRow;
+ SCTAB const mnTab;
+ QueryOp const meOp;
QueryKey( const ScAddress & rAddress, const QueryOp eOp ) :
mnRow( rAddress.Row()),
@@ -171,7 +171,7 @@ private:
struct QueryCriteriaAndResult
{
- QueryCriteria maCriteria;
+ QueryCriteria const maCriteria;
ScAddress maAddress;
QueryCriteriaAndResult( const QueryCriteria & rCriteria, const ScAddress & rAddress ) :
@@ -182,7 +182,7 @@ private:
};
std::unordered_map< QueryKey, QueryCriteriaAndResult, QueryKey::Hash > maQueryMap;
- ScRange maRange;
+ ScRange const maRange;
ScDocument * mpDoc;
ScLookupCache( const ScLookupCache & ) = delete;
diff --git a/sc/inc/miscuno.hxx b/sc/inc/miscuno.hxx
index 566ca6d1cae2..e0391e431f43 100644
--- a/sc/inc/miscuno.hxx
+++ b/sc/inc/miscuno.hxx
@@ -78,7 +78,7 @@ class ScIndexEnumeration : public cppu::WeakImplHelper<
{
private:
css::uno::Reference<css::container::XIndexAccess> xIndex;
- OUString sServiceName;
+ OUString const sServiceName;
sal_Int32 nPos;
public:
diff --git a/sc/inc/nameuno.hxx b/sc/inc/nameuno.hxx
index 448db7c8af7f..15f7a5157856 100644
--- a/sc/inc/nameuno.hxx
+++ b/sc/inc/nameuno.hxx
@@ -253,7 +253,7 @@ class ScLabelRangeObj : public ::cppu::WeakImplHelper<
{
private:
ScDocShell* pDocShell;
- bool bColumn;
+ bool const bColumn;
ScRange aRange; ///< criterion to find range
private:
@@ -286,7 +286,7 @@ class ScLabelRangesObj : public ::cppu::WeakImplHelper<
{
private:
ScDocShell* pDocShell;
- bool bColumn;
+ bool const bColumn;
ScLabelRangeObj* GetObjectByIndex_Impl(size_t nIndex);
diff --git a/sc/inc/notesuno.hxx b/sc/inc/notesuno.hxx
index 015132a7b4fa..59af4726022a 100644
--- a/sc/inc/notesuno.hxx
+++ b/sc/inc/notesuno.hxx
@@ -98,7 +98,7 @@ private:
private:
ScDocShell* pDocShell;
- ScAddress aCellPos;
+ ScAddress const aCellPos;
rtl::Reference<SvxUnoText> pUnoText;
};
diff --git a/sc/inc/orcusxml.hxx b/sc/inc/orcusxml.hxx
index 5b9e830aadc0..2b8f94425f73 100644
--- a/sc/inc/orcusxml.hxx
+++ b/sc/inc/orcusxml.hxx
@@ -30,7 +30,7 @@ struct ScOrcusXMLTreeParam
struct EntryData
{
size_t mnNamespaceID; /// numerical ID for xml namespace
- EntryType meType;
+ EntryType const meType;
ScAddress maLinkedPos; /// linked cell position (invalid if unlinked)
bool mbRangeParent:1;
bool mbLeafNode:1; /// Leaf if it has no child elements. Child Attributes don't count.
diff --git a/sc/inc/postit.hxx b/sc/inc/postit.hxx
index fcb4ea542354..ca72c47befca 100644
--- a/sc/inc/postit.hxx
+++ b/sc/inc/postit.hxx
@@ -259,7 +259,7 @@ namespace sc {
struct NoteEntry
{
- ScAddress maPos;
+ ScAddress const maPos;
const ScPostIt* mpNote;
NoteEntry( const ScAddress& rPos, const ScPostIt* pNote );
diff --git a/sc/inc/printopt.hxx b/sc/inc/printopt.hxx
index de53c502c74c..52379bb3f05f 100644
--- a/sc/inc/printopt.hxx
+++ b/sc/inc/printopt.hxx
@@ -65,7 +65,7 @@ public:
const ScPrintOptions& GetPrintOptions() const { return theOptions; }
private:
- ScPrintOptions theOptions;
+ ScPrintOptions const theOptions;
};
// config item
diff --git a/sc/inc/prnsave.hxx b/sc/inc/prnsave.hxx
index ca928f908dd1..e1e81991e111 100644
--- a/sc/inc/prnsave.hxx
+++ b/sc/inc/prnsave.hxx
@@ -50,7 +50,7 @@ public:
class ScPrintRangeSaver
{
- SCTAB nTabCount;
+ SCTAB const nTabCount;
std::unique_ptr<ScPrintSaverTab[]> pData;
public:
diff --git a/sc/inc/queryparam.hxx b/sc/inc/queryparam.hxx
index 79215637ef03..594b21d56057 100644
--- a/sc/inc/queryparam.hxx
+++ b/sc/inc/queryparam.hxx
@@ -182,7 +182,7 @@ protected:
ScDBQueryParamBase(DataType eType);
private:
- DataType meType;
+ DataType const meType;
};
struct ScDBQueryParamInternal : public ScDBQueryParamBase, public ScQueryParamTable
diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx
index ae3cefa810c2..728164a54d6d 100644
--- a/sc/inc/rangenam.hxx
+++ b/sc/inc/rangenam.hxx
@@ -67,8 +67,8 @@ public:
};
private:
- OUString aName;
- OUString aUpperName; // #i62977# for faster searching (aName is never modified after ctor)
+ OUString const aName;
+ OUString const aUpperName; // #i62977# for faster searching (aName is never modified after ctor)
OUString maNewName; ///< used for formulas after changing names in the dialog
std::unique_ptr<ScTokenArray>
pCode;
@@ -81,8 +81,8 @@ private:
// max row and column to use for wrapping of references. If -1 use the
// application's default.
- SCROW mnMaxRow;
- SCCOL mnMaxCol;
+ SCROW const mnMaxRow;
+ SCCOL const mnMaxCol;
void CompileRangeData( const OUString& rSymbol, bool bSetError );
void InitCode();
diff --git a/sc/inc/recursionhelper.hxx b/sc/inc/recursionhelper.hxx
index 03ed1db176ed..23422d7c2a71 100644
--- a/sc/inc/recursionhelper.hxx
+++ b/sc/inc/recursionhelper.hxx
@@ -30,8 +30,8 @@ class ScFormulaCell;
struct ScFormulaRecursionEntry
{
- ScFormulaCell* pCell;
- bool bOldRunning;
+ ScFormulaCell* const pCell;
+ bool const bOldRunning;
ScFormulaResult aPreviousResult;
ScFormulaRecursionEntry(
ScFormulaCell* p, bool bR, const ScFormulaResult & rRes ) :
diff --git a/sc/inc/reffind.hxx b/sc/inc/reffind.hxx
index 9cb3bd00b924..d5e21f5e86f3 100644
--- a/sc/inc/reffind.hxx
+++ b/sc/inc/reffind.hxx
@@ -27,9 +27,9 @@ class ScDocument;
class ScRefFinder
{
OUString maFormula;
- formula::FormulaGrammar::AddressConvention meConv;
- ScDocument* mpDoc;
- ScAddress maPos;
+ formula::FormulaGrammar::AddressConvention const meConv;
+ ScDocument* const mpDoc;
+ ScAddress const maPos;
sal_Int32 mnFound;
sal_Int32 mnSelStart;
sal_Int32 mnSelEnd;
diff --git a/sc/inc/refhint.hxx b/sc/inc/refhint.hxx
index cfdcaa6ec40e..2e32519011a7 100644
--- a/sc/inc/refhint.hxx
+++ b/sc/inc/refhint.hxx
@@ -30,7 +30,7 @@ public:
};
private:
- Type meType;
+ Type const meType;
protected:
RefHint( Type eType );
@@ -49,8 +49,8 @@ public:
class RefMovedHint : public RefHint
{
- ScRange maRange;
- ScAddress maMoveDelta;
+ ScRange const maRange;
+ ScAddress const maMoveDelta;
const sc::RefUpdateContext& mrCxt;
public:
@@ -74,9 +74,9 @@ public:
class RefColReorderHint : public RefHint
{
const sc::ColRowReorderMapType& mrColMap;
- SCTAB mnTab;
- SCROW mnRow1;
- SCROW mnRow2;
+ SCTAB const mnTab;
+ SCROW const mnRow1;
+ SCROW const mnRow2;
public:
RefColReorderHint( const sc::ColRowReorderMapType& rColMap, SCTAB nTab, SCROW nRow1, SCROW nRow2 );
@@ -97,9 +97,9 @@ public:
class RefRowReorderHint : public RefHint
{
const sc::ColRowReorderMapType& mrRowMap;
- SCTAB mnTab;
- SCCOL mnCol1;
- SCCOL mnCol2;
+ SCTAB const mnTab;
+ SCCOL const mnCol1;
+ SCCOL const mnCol2;
public:
RefRowReorderHint( const sc::ColRowReorderMapType& rRowMap, SCTAB nTab, SCCOL nCol1, SCCOL nCol2 );
diff --git a/sc/inc/refupdatecontext.hxx b/sc/inc/refupdatecontext.hxx
index 417aa794a54e..7b5afe926e1a 100644
--- a/sc/inc/refupdatecontext.hxx
+++ b/sc/inc/refupdatecontext.hxx
@@ -109,8 +109,8 @@ struct RefUpdateResult
struct SC_DLLPUBLIC RefUpdateInsertTabContext
{
ScDocument& mrDoc;
- SCTAB mnInsertPos;
- SCTAB mnSheets;
+ SCTAB const mnInsertPos;
+ SCTAB const mnSheets;
UpdatedRangeNames maUpdatedNames;
RefUpdateInsertTabContext(ScDocument& rDoc, SCTAB nInsertPos, SCTAB nSheets);
@@ -119,8 +119,8 @@ struct SC_DLLPUBLIC RefUpdateInsertTabContext
struct SC_DLLPUBLIC RefUpdateDeleteTabContext
{
ScDocument& mrDoc;
- SCTAB mnDeletePos;
- SCTAB mnSheets;
+ SCTAB const mnDeletePos;
+ SCTAB const mnSheets;
UpdatedRangeNames maUpdatedNames;
RefUpdateDeleteTabContext(ScDocument& rDoc, SCTAB nInsertPos, SCTAB nSheets);
@@ -129,8 +129,8 @@ struct SC_DLLPUBLIC RefUpdateDeleteTabContext
struct RefUpdateMoveTabContext
{
ScDocument& mrDoc;
- SCTAB mnOldPos;
- SCTAB mnNewPos;
+ SCTAB const mnOldPos;
+ SCTAB const mnNewPos;
UpdatedRangeNames maUpdatedNames;
RefUpdateMoveTabContext(ScDocument& rDoc, SCTAB nOldPos, SCTAB nNewPos);
diff --git a/sc/inc/rowheightcontext.hxx b/sc/inc/rowheightcontext.hxx
index 78bee982744e..2bec0e05cbcb 100644
--- a/sc/inc/rowheightcontext.hxx
+++ b/sc/inc/rowheightcontext.hxx
@@ -24,10 +24,10 @@ class SC_DLLPUBLIC RowHeightContext
{
ScFlatUInt16RowSegments maHeights;
- double mfPPTX;
- double mfPPTY;
- Fraction maZoomX;
- Fraction maZoomY;
+ double const mfPPTX;
+ double const mfPPTY;
+ Fraction const maZoomX;
+ Fraction const maZoomY;
VclPtr<OutputDevice> mpOutDev;
sal_uInt16 mnExtraHeight;
diff --git a/sc/inc/scopetools.hxx b/sc/inc/scopetools.hxx
index c246fa9171b8..f49c077dd588 100644
--- a/sc/inc/scopetools.hxx
+++ b/sc/inc/scopetools.hxx
@@ -24,7 +24,7 @@ namespace sc {
class SC_DLLPUBLIC AutoCalcSwitch
{
ScDocument& mrDoc;
- bool mbOldValue;
+ bool const mbOldValue;
public:
AutoCalcSwitch(ScDocument& rDoc, bool bAutoCalc);
~AutoCalcSwitch();
@@ -33,7 +33,7 @@ public:
class SC_DLLPUBLIC ExpandRefsSwitch
{
ScDocument& mrDoc;
- bool mbOldValue;
+ bool const mbOldValue;
public:
ExpandRefsSwitch(ScDocument& rDoc, bool bExpandRefs);
~ExpandRefsSwitch();
@@ -42,7 +42,7 @@ public:
class SC_DLLPUBLIC UndoSwitch
{
ScDocument& mrDoc;
- bool mbOldValue;
+ bool const mbOldValue;
public:
UndoSwitch(ScDocument& rDoc, bool bUndo);
~UndoSwitch();
@@ -51,7 +51,7 @@ public:
class SC_DLLPUBLIC IdleSwitch
{
ScDocument& mrDoc;
- bool mbOldValue;
+ bool const mbOldValue;
public:
IdleSwitch(ScDocument& rDoc, bool bEnableIdle);
~IdleSwitch();
diff --git a/sc/inc/sheetdata.hxx b/sc/inc/sheetdata.hxx
index 19962852a092..1f3ce0793058 100644
--- a/sc/inc/sheetdata.hxx
+++ b/sc/inc/sheetdata.hxx
@@ -49,7 +49,7 @@ struct ScStreamEntry
struct ScCellStyleEntry
{
OUString maName;
- ScAddress maCellPos;
+ ScAddress const maCellPos;
ScCellStyleEntry( const OUString& rName, const ScAddress& rPos ) :
maName(rName),
@@ -74,9 +74,9 @@ struct ScNoteStyleEntry
struct ScTextStyleEntry
{
- OUString maName;
- ScAddress maCellPos;
- ESelection maSelection;
+ OUString const maName;
+ ScAddress const maCellPos;
+ ESelection const maSelection;
ScTextStyleEntry( const OUString& rName, const ScAddress& rPos, const ESelection& rSel ) :
maName(rName),
@@ -88,9 +88,9 @@ struct ScTextStyleEntry
struct ScLoadedNamespaceEntry
{
- OUString maPrefix;
- OUString maName;
- sal_uInt16 mnKey;
+ OUString const maPrefix;
+ OUString const maName;
+ sal_uInt16 const mnKey;
ScLoadedNamespaceEntry( const OUString& rPrefix, const OUString& rName, sal_uInt16 nKey ) :
maPrefix(rPrefix),
diff --git a/sc/inc/simpleformulacalc.hxx b/sc/inc/simpleformulacalc.hxx
index f14408aa190f..e7f61b5ddbe1 100644
--- a/sc/inc/simpleformulacalc.hxx
+++ b/sc/inc/simpleformulacalc.hxx
@@ -26,14 +26,14 @@ private:
bool mbCalculated;
std::unique_ptr<ScTokenArray> mpCode;
- ScAddress maAddr;
+ ScAddress const maAddr;
ScDocument* mpDoc;
ScFormulaResult maResult;
- formula::FormulaGrammar::Grammar maGram;
+ formula::FormulaGrammar::Grammar const maGram;
bool mbMatrixResult;
OUString maMatrixFormulaResult;
bool mbLimitString;
- bool mbMatrixFormula;
+ bool const mbMatrixFormula;
public:
ScSimpleFormulaCalculator(ScDocument* pDoc, const ScAddress& rAddr,
diff --git a/sc/inc/srchuno.hxx b/sc/inc/srchuno.hxx
index bd098fbfc085..d2c94846209c 100644
--- a/sc/inc/srchuno.hxx
+++ b/sc/inc/srchuno.hxx
@@ -35,7 +35,7 @@ class ScCellSearchObj : public cppu::WeakImplHelper<
css::lang::XServiceInfo >
{
private:
- SfxItemPropertySet aPropSet;
+ SfxItemPropertySet const aPropSet;
std::unique_ptr<SvxSearchItem>
pSearchItem;
diff --git a/sc/inc/styleuno.hxx b/sc/inc/styleuno.hxx
index 4d076df46d51..34fa814451db 100644
--- a/sc/inc/styleuno.hxx
+++ b/sc/inc/styleuno.hxx
@@ -107,7 +107,7 @@ class ScStyleFamilyObj : public ::cppu::WeakImplHelper<
{
private:
ScDocShell* pDocShell;
- SfxStyleFamily eFamily; // Family
+ SfxStyleFamily const eFamily; // Family
ScStyleObj* GetObjectByIndex_Impl(sal_uInt32 nIndex);
ScStyleObj* GetObjectByName_Impl(const OUString& Name);
@@ -168,7 +168,7 @@ class ScStyleObj : public ::cppu::WeakImplHelper<
private:
const SfxItemPropertySet* pPropSet;
ScDocShell* pDocShell;
- SfxStyleFamily eFamily; // Family
+ SfxStyleFamily const eFamily; // Family
OUString aStyleName;
SfxStyleSheetBase* pStyle_cached;
diff --git a/sc/inc/subtotal.hxx b/sc/inc/subtotal.hxx
index ee0f16ea95e1..7858fcae6f2b 100644
--- a/sc/inc/subtotal.hxx
+++ b/sc/inc/subtotal.hxx
@@ -32,7 +32,7 @@ public:
struct ScFunctionData // to calculate single functions
{
- ScSubTotalFunc eFunc;
+ ScSubTotalFunc const eFunc;
double nVal;
long nCount;
bool bError;
diff --git a/sc/inc/tabbgcolor.hxx b/sc/inc/tabbgcolor.hxx
index 872d81285201..92aff763d481 100644
--- a/sc/inc/tabbgcolor.hxx
+++ b/sc/inc/tabbgcolor.hxx
@@ -27,7 +27,7 @@
struct ScUndoTabColorInfo
{
- SCTAB mnTabId;
+ SCTAB const mnTabId;
Color maOldTabBgColor;
Color maNewTabBgColor;
diff --git a/sc/inc/targuno.hxx b/sc/inc/targuno.hxx
index 387a76160364..efed914a5a42 100644
--- a/sc/inc/targuno.hxx
+++ b/sc/inc/targuno.hxx
@@ -81,7 +81,7 @@ class ScLinkTargetTypeObj : public ::cppu::WeakImplHelper<
{
private:
ScDocShell* pDocShell;
- sal_uInt16 nType;
+ sal_uInt16 const nType;
OUString aName;
public:
diff --git a/sc/inc/textuno.hxx b/sc/inc/textuno.hxx
index c76e67ed140e..5467c4eb6726 100644
--- a/sc/inc/textuno.hxx
+++ b/sc/inc/textuno.hxx
@@ -104,7 +104,7 @@ class ScHeaderFooterTextData
private:
std::unique_ptr<EditTextObject> mpTextObj;
css::uno::WeakReference<css::sheet::XHeaderFooterContent> xContentObj;
- ScHeaderFooterPart nPart;
+ ScHeaderFooterPart const nPart;
std::unique_ptr<ScEditEngineDefaulter> pEditEngine;
std::unique_ptr<SvxEditEngineForwarder> pForwarder;
bool bDataValid;
@@ -336,7 +336,7 @@ class ScCellTextData : public SfxListener
{
protected:
ScDocShell* pDocShell;
- ScAddress aCellPos;
+ ScAddress const aCellPos;
std::unique_ptr<ScFieldEditEngine> pEditEngine;
std::unique_ptr<SvxEditEngineForwarder> pForwarder;
std::unique_ptr<ScCellEditSource> pOriginalSource;
diff --git a/sc/inc/token.hxx b/sc/inc/token.hxx
index 95fb24e5e2b5..c55230223b1f 100644
--- a/sc/inc/token.hxx
+++ b/sc/inc/token.hxx
@@ -97,7 +97,7 @@ public:
class ScMatrixToken : public formula::FormulaToken
{
private:
- ScMatrixRef pMatrix;
+ ScMatrixRef const pMatrix;
public:
ScMatrixToken( const ScMatrixRef& p );
ScMatrixToken( const ScMatrixToken& );
@@ -115,7 +115,7 @@ public:
*/
class ScMatrixRangeToken : public formula::FormulaToken
{
- ScMatrixRef mpMatrix;
+ ScMatrixRef const mpMatrix;
ScComplexRefData maRef;
public:
ScMatrixRangeToken( const sc::RangeMatrix& rMat );
@@ -132,8 +132,8 @@ public:
class ScExternalSingleRefToken : public formula::FormulaToken
{
- sal_uInt16 mnFileId;
- svl::SharedString maTabName;
+ sal_uInt16 const mnFileId;
+ svl::SharedString const maTabName;
ScSingleRefData maSingleRef;
public:
@@ -156,8 +156,8 @@ public:
class ScExternalDoubleRefToken : public formula::FormulaToken
{
- sal_uInt16 mnFileId;
- svl::SharedString maTabName; // name of the first sheet
+ sal_uInt16 const mnFileId;
+ svl::SharedString const maTabName; // name of the first sheet
ScComplexRefData maDoubleRef;
public:
@@ -184,8 +184,8 @@ public:
class ScExternalNameToken : public formula::FormulaToken
{
- sal_uInt16 mnFileId;
- svl::SharedString maName;
+ sal_uInt16 const mnFileId;
+ svl::SharedString const maName;
public:
ScExternalNameToken() = delete;
@@ -264,7 +264,7 @@ class ScRefListToken : public formula::FormulaToken
{
private:
ScRefList aRefList;
- bool mbArrayResult; // whether RefList is an array result
+ bool const mbArrayResult; // whether RefList is an array result
public:
ScRefListToken() :
FormulaToken( formula::svRefList ), mbArrayResult(false) {}
@@ -279,8 +279,8 @@ public:
class SC_DLLPUBLIC ScEmptyCellToken : public formula::FormulaToken
{
- bool bInherited :1;
- bool bDisplayedAsString :1;
+ bool const bInherited :1;
+ bool const bDisplayedAsString :1;
public:
explicit ScEmptyCellToken( bool bInheritedP, bool bDisplayAsString ) :
FormulaToken( formula::svEmptyCell ),
@@ -382,10 +382,10 @@ private:
class SC_DLLPUBLIC ScHybridCellToken : public formula::FormulaToken
{
private:
- double mfDouble;
- svl::SharedString maString;
- OUString maFormula;
- bool mbEmptyDisplayedAsString;
+ double const mfDouble;
+ svl::SharedString const maString;
+ OUString const maFormula;
+ bool const mbEmptyDisplayedAsString;
public:
ScHybridCellToken(
double f, const svl::SharedString & rStr, const OUString & rFormula, bool bEmptyDisplayedAsString );
diff --git a/sc/inc/tokenstringcontext.hxx b/sc/inc/tokenstringcontext.hxx
index c33f6daf6b97..69cbdfb1502f 100644
--- a/sc/inc/tokenstringcontext.hxx
+++ b/sc/inc/tokenstringcontext.hxx
@@ -30,7 +30,7 @@ struct SC_DLLPUBLIC TokenStringContext
typedef std::unordered_map<size_t, std::vector<OUString> > IndexNamesMapType;
typedef std::unordered_map<SCTAB, IndexNameMapType> TabIndexMapType;
- formula::FormulaGrammar::Grammar meGram;
+ formula::FormulaGrammar::Grammar const meGram;
formula::FormulaCompiler::OpCodeMapPtr mxOpCodeMap;
const ScCompiler::Convention* mpRefConv;
OUString maErrRef;
@@ -48,7 +48,7 @@ struct SC_DLLPUBLIC TokenStringContext
class SC_DLLPUBLIC CompileFormulaContext
{
- ScDocument* mpDoc;
+ ScDocument* const mpDoc;
formula::FormulaGrammar::Grammar meGram;
std::vector<OUString> maTabNames;
diff --git a/sc/inc/typedstrdata.hxx b/sc/inc/typedstrdata.hxx
index 56414f10c267..5b82478c3385 100644
--- a/sc/inc/typedstrdata.hxx
+++ b/sc/inc/typedstrdata.hxx
@@ -64,8 +64,8 @@ private:
class FindTypedStrData
{
- ScTypedStrData maVal;
- bool mbCaseSens;
+ ScTypedStrData const maVal;
+ bool const mbCaseSens;
public:
FindTypedStrData(const ScTypedStrData& rVal, bool bCaseSens);
bool operator() (const ScTypedStrData& r) const;
diff --git a/sc/inc/undorangename.hxx b/sc/inc/undorangename.hxx
index 2ad874c2ab96..2ab996369aa1 100644
--- a/sc/inc/undorangename.hxx
+++ b/sc/inc/undorangename.hxx
@@ -59,7 +59,7 @@ public:
private:
std::unique_ptr<ScRangeData> mpRangeData;
- SCTAB mnTab;
+ SCTAB const mnTab;
};
#endif
diff --git a/sc/inc/unitconv.hxx b/sc/inc/unitconv.hxx
index 11cdad201a18..01a6a3437846 100644
--- a/sc/inc/unitconv.hxx
+++ b/sc/inc/unitconv.hxx
@@ -24,8 +24,8 @@
class ScUnitConverterData
{
- OUString maIndexString;
- double mfValue;
+ OUString const maIndexString;
+ double const mfValue;
public:
ScUnitConverterData( const OUString& rFromUnit,
diff --git a/sc/inc/unoreflist.hxx b/sc/inc/unoreflist.hxx
index c5192d7308fc..863a04e224d7 100644
--- a/sc/inc/unoreflist.hxx
+++ b/sc/inc/unoreflist.hxx
@@ -26,8 +26,8 @@
struct ScUnoRefEntry
{
- sal_Int64 nObjectId;
- ScRangeList aRanges;
+ sal_Int64 const nObjectId;
+ ScRangeList const aRanges;
ScUnoRefEntry( sal_Int64 nId, const ScRangeList& rOldRanges ) :
nObjectId( nId ),
@@ -59,7 +59,7 @@ public:
class ScUnoRefUndoHint : public SfxHint
{
- ScUnoRefEntry aEntry;
+ ScUnoRefEntry const aEntry;
public:
ScUnoRefUndoHint( const ScUnoRefEntry& rRefEntry );
diff --git a/sc/inc/validat.hxx b/sc/inc/validat.hxx
index 64e0d2520feb..a37df6a00127 100644
--- a/sc/inc/validat.hxx
+++ b/sc/inc/validat.hxx
@@ -63,7 +63,7 @@ class SC_DLLPUBLIC ScValidationData : public ScConditionEntry
private:
sal_uInt32 nKey; // index in attributes
- ScValidationMode eDataMode;
+ ScValidationMode const eDataMode;
bool bShowInput;
bool bShowError;
ScValidErrorStyle eErrorStyle;
diff --git a/sc/inc/viewopti.hxx b/sc/inc/viewopti.hxx
index 463de1c698fe..a0660acdf4b2 100644
--- a/sc/inc/viewopti.hxx
+++ b/sc/inc/viewopti.hxx
@@ -127,7 +127,7 @@ public:
const ScViewOptions& GetViewOptions() const { return theOptions; }
private:
- ScViewOptions theOptions;
+ ScViewOptions const theOptions;
};
// CfgItem for View options
diff --git a/sc/inc/viewuno.hxx b/sc/inc/viewuno.hxx
index f9328fb87d95..1846ca6cb844 100644
--- a/sc/inc/viewuno.hxx
+++ b/sc/inc/viewuno.hxx
@@ -60,7 +60,7 @@ class ScViewPaneBase : public css::sheet::XViewPane,
{
private:
ScTabViewShell* pViewShell;
- sal_uInt16 nPane; // ScSplitPos or SC_VIEWPANE_ACTIVE
+ sal_uInt16 const nPane; // ScSplitPos or SC_VIEWPANE_ACTIVE
protected:
css::awt::Rectangle GetVisArea() const;
@@ -146,7 +146,7 @@ private:
typedef std::vector<css::uno::Reference<css::awt::XEnhancedMouseClickHandler> > XMouseClickHandlerVector;
typedef std::vector<css::uno::Reference<css::sheet::XActivationEventListener> > XActivationEventListenerVector;
- SfxItemPropertySet aPropSet;
+ SfxItemPropertySet const aPropSet;
XSelectionChangeListenerVector aSelectionChgListeners;
XRangeSelectionListenerVector aRangeSelListeners;
XRangeSelectionChangeListenerVector aRangeChgListeners;