summaryrefslogtreecommitdiff
path: root/sc/inc/dptabres.hxx
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/dptabres.hxx
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/dptabres.hxx')
-rw-r--r--sc/inc/dptabres.hxx16
1 files changed, 8 insertions, 8 deletions
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;