summaryrefslogtreecommitdiff
path: root/sd/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-08 16:12:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-09 08:10:59 +0200
commit453879cfd8f4a8e22847043231a0929e4d50f238 (patch)
treee3f9e78f4be775a31f99e27e20747b54d2e9a941 /sd/inc
parentec7e3609917092ee00667c78ff40cd4c2f0adec1 (diff)
loplugin:constfields in sd
Change-Id: Ia072401c71dacf089b9f5213957c2cd25bb1a1b3 Reviewed-on: https://gerrit.libreoffice.org/61553 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/inc')
-rw-r--r--sd/inc/CustomAnimationEffect.hxx2
-rw-r--r--sd/inc/CustomAnimationPreset.hxx2
-rw-r--r--sd/inc/Outliner.hxx4
-rw-r--r--sd/inc/OutlinerIterator.hxx2
-rw-r--r--sd/inc/animations.hxx2
-rw-r--r--sd/inc/anminfo.hxx4
-rw-r--r--sd/inc/drawdoc.hxx2
-rw-r--r--sd/inc/sdfilter.hxx2
-rw-r--r--sd/inc/sdiocmpt.hxx2
-rw-r--r--sd/inc/sdpage.hxx2
-rw-r--r--sd/inc/sdxmlwrp.hxx4
-rw-r--r--sd/inc/undo/undoobjects.hxx2
12 files changed, 15 insertions, 15 deletions
diff --git a/sd/inc/CustomAnimationEffect.hxx b/sd/inc/CustomAnimationEffect.hxx
index 4d2bbad231f2..c18d1437e730 100644
--- a/sd/inc/CustomAnimationEffect.hxx
+++ b/sd/inc/CustomAnimationEffect.hxx
@@ -253,7 +253,7 @@ private:
double mfGroupingAuto;
sal_Int32 mnLastPara;
sal_Int8 mnDepthFlags[PARA_LEVELS];
- sal_Int32 mnGroupId;
+ sal_Int32 const mnGroupId;
};
typedef std::shared_ptr< CustomAnimationTextGroup > CustomAnimationTextGroupPtr;
diff --git a/sd/inc/CustomAnimationPreset.hxx b/sd/inc/CustomAnimationPreset.hxx
index 85318c9c4c2a..eeeeac55ad77 100644
--- a/sd/inc/CustomAnimationPreset.hxx
+++ b/sd/inc/CustomAnimationPreset.hxx
@@ -73,7 +73,7 @@ typedef std::vector< CustomAnimationPresetPtr > EffectDescriptorList;
struct PresetCategory
{
- OUString maLabel;
+ OUString const maLabel;
EffectDescriptorList maEffects;
PresetCategory( const OUString& rLabel, const EffectDescriptorList& rEffects )
diff --git a/sd/inc/Outliner.hxx b/sd/inc/Outliner.hxx
index 0dfe8890ee00..32e2b21cfa88 100644
--- a/sd/inc/Outliner.hxx
+++ b/sd/inc/Outliner.hxx
@@ -45,12 +45,12 @@ class Window;
struct SearchSelection
{
/// 0-based index of the page that has the selection.
- int m_nPage;
+ int const m_nPage;
/**
* List of selection rectangles in twips -- multiple rectangles only in
* case the selection spans over more layout lines.
*/
- OString m_aRectangles;
+ OString const m_aRectangles;
SearchSelection(int nPage, const OString& rRectangles);
diff --git a/sd/inc/OutlinerIterator.hxx b/sd/inc/OutlinerIterator.hxx
index 523eaf640c3a..d9033bbfb8cc 100644
--- a/sd/inc/OutlinerIterator.hxx
+++ b/sd/inc/OutlinerIterator.hxx
@@ -193,7 +193,7 @@ public:
private:
/// The wrapped outliner that is represented as object container.
- SdOutliner* mpOutliner;
+ SdOutliner* const mpOutliner;
/** Create an iterator. The object pointed to depends on the search
direction retrieved from the outliner object
diff --git a/sd/inc/animations.hxx b/sd/inc/animations.hxx
index bb7f61339a95..9d9505c5f0e0 100644
--- a/sd/inc/animations.hxx
+++ b/sd/inc/animations.hxx
@@ -32,7 +32,7 @@ struct AfterEffectNode
{
css::uno::Reference< css::animations::XAnimationNode > mxNode;
css::uno::Reference< css::animations::XAnimationNode > mxMaster;
- bool mbOnNextEffect;
+ bool const mbOnNextEffect;
AfterEffectNode( const css::uno::Reference< css::animations::XAnimationNode >& xNode, const css::uno::Reference< css::animations::XAnimationNode >& xMaster, bool bOnNextEffect )
: mxNode( xNode ), mxMaster( xMaster ), mbOnNextEffect( bOnNextEffect ) {}
diff --git a/sd/inc/anminfo.hxx b/sd/inc/anminfo.hxx
index 03dd4fce8783..d6810db45091 100644
--- a/sd/inc/anminfo.hxx
+++ b/sd/inc/anminfo.hxx
@@ -39,7 +39,7 @@ public:
css::presentation::AnimationSpeed meSpeed; ///< Speed of the animation
bool mbActive; ///< turned on?
bool mbDimPrevious; ///< Object fade out
- bool mbIsMovie; ///< if group object than it is a sequence of them.
+ bool const mbIsMovie; ///< if group object than it is a sequence of them.
bool mbDimHide; ///< hide rather than dim
Color maBlueScreen; ///< identifies "background pixels"
Color maDimColor; ///< for fading the object
@@ -49,7 +49,7 @@ public:
css::presentation::ClickAction meClickAction; ///< Action at mouse click
css::presentation::AnimationEffect meSecondEffect; ///< for object fading.
css::presentation::AnimationSpeed meSecondSpeed; ///< for object fading.
- OUString maSecondSoundFile; ///< for object fading.
+ OUString const maSecondSoundFile; ///< for object fading.
bool mbSecondSoundOn; ///< for object fading.
bool mbSecondPlayFull; ///< for object fading.
sal_uInt16 mnVerb; ///< for OLE object
diff --git a/sd/inc/drawdoc.hxx b/sd/inc/drawdoc.hxx
index 92234c49e5c1..4678dfefcfe5 100644
--- a/sd/inc/drawdoc.hxx
+++ b/sd/inc/drawdoc.hxx
@@ -175,7 +175,7 @@ private:
SvxNumType mePageNumType;
::sd::DrawDocShellRef mxAllocedDocShRef; // => AllocModel()
bool mbAllocDocSh; // => AllocModel()
- DocumentType meDocType;
+ DocumentType const meDocType;
std::unique_ptr<CharClass>
mpCharClass;
diff --git a/sd/inc/sdfilter.hxx b/sd/inc/sdfilter.hxx
index dbf6d27a9ff4..17ce09d3647b 100644
--- a/sd/inc/sdfilter.hxx
+++ b/sd/inc/sdfilter.hxx
@@ -52,7 +52,7 @@ protected:
SfxMedium& mrMedium;
::sd::DrawDocShell& mrDocShell;
SdDrawDocument& mrDocument;
- bool mbIsDraw : 1;
+ bool const mbIsDraw : 1;
void CreateStatusIndicator();
private:
diff --git a/sd/inc/sdiocmpt.hxx b/sd/inc/sdiocmpt.hxx
index fb1872f16832..8afba8277c2d 100644
--- a/sd/inc/sdiocmpt.hxx
+++ b/sd/inc/sdiocmpt.hxx
@@ -30,7 +30,7 @@ protected:
SvStream& rStream;
sal_uInt32 nSubRecSiz;
sal_uInt32 nSubRecPos;
- StreamMode nMode;
+ StreamMode const nMode;
bool bOpen;
protected:
diff --git a/sd/inc/sdpage.hxx b/sd/inc/sdpage.hxx
index 8cec945cccaf..ec1efd71a2d0 100644
--- a/sd/inc/sdpage.hxx
+++ b/sd/inc/sdpage.hxx
@@ -383,7 +383,7 @@ private:
bool mbIsPrecious;
// page id of this page
- sal_uInt16 mnPageId;
+ sal_uInt16 const mnPageId;
/** clone the animations from this and set them to rTargetPage
* TTTT: Order is strange, should be the other way around by
diff --git a/sd/inc/sdxmlwrp.hxx b/sd/inc/sdxmlwrp.hxx
index 9bbd2c00a667..a73ce57d22f7 100644
--- a/sd/inc/sdxmlwrp.hxx
+++ b/sd/inc/sdxmlwrp.hxx
@@ -46,8 +46,8 @@ public:
bool Export() override;
private:
- SdXMLFilterMode meFilterMode;
- sal_uLong mnStoreVer;
+ SdXMLFilterMode const meFilterMode;
+ sal_uLong const mnStoreVer;
};
#endif // INCLUDED_SD_INC_SDXMLWRP_HXX
diff --git a/sd/inc/undo/undoobjects.hxx b/sd/inc/undo/undoobjects.hxx
index 15ae5c6c1d4b..5121bc40c5f7 100644
--- a/sd/inc/undo/undoobjects.hxx
+++ b/sd/inc/undo/undoobjects.hxx
@@ -108,7 +108,7 @@ public:
virtual void Redo() override;
private:
- SdrObjUserCall* mpOldUserCall;
+ SdrObjUserCall* const mpOldUserCall;
SdrObjUserCall* mpNewUserCall;
::tools::WeakReference<SdrObject> mxSdrObject;
};