summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/svx/svdedtv.hxx2
-rw-r--r--include/svx/svdlayer.hxx2
-rw-r--r--include/svx/svdoedge.hxx2
-rw-r--r--include/svx/svdtrans.hxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/include/svx/svdedtv.hxx b/include/svx/svdedtv.hxx
index 38724021fe8d..ee0f1305a2b4 100644
--- a/include/svx/svdedtv.hxx
+++ b/include/svx/svdedtv.hxx
@@ -156,7 +156,7 @@ protected:
// Check possibilities of all marked objects
virtual void CheckPossibilities();
- void ForcePossibilities() const { if (bPossibilitiesDirty || bSomeObjChgdFlag) ((SdrEditView*)this)->CheckPossibilities(); }
+ void ForcePossibilities() const { if (bPossibilitiesDirty || bSomeObjChgdFlag) const_cast<SdrEditView*>(this)->CheckPossibilities(); }
protected:
// #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView
diff --git a/include/svx/svdlayer.hxx b/include/svx/svdlayer.hxx
index 66d304366699..a0d0dc845e17 100644
--- a/include/svx/svdlayer.hxx
+++ b/include/svx/svdlayer.hxx
@@ -137,7 +137,7 @@ public:
SdrLayer* GetLayer(const OUString& rName, bool bInherited);
const SdrLayer* GetLayer(const OUString& rName, bool bInherited) const;
SdrLayerID GetLayerID(const OUString& rName, bool bInherited) const;
- SdrLayer* GetLayerPerID(sal_uInt16 nID) { return (SdrLayer*)(((const SdrLayerAdmin*)this)->GetLayerPerID(nID)); }
+ SdrLayer* GetLayerPerID(sal_uInt16 nID) { return const_cast<SdrLayer*>(((const SdrLayerAdmin*)this)->GetLayerPerID(nID)); }
const SdrLayer* GetLayerPerID(sal_uInt16 nID) const;
void SetControlLayerName(const OUString& rNewName);
diff --git a/include/svx/svdoedge.hxx b/include/svx/svdoedge.hxx
index 04351a083b7c..0b93fbc17c77 100644
--- a/include/svx/svdoedge.hxx
+++ b/include/svx/svdoedge.hxx
@@ -116,7 +116,7 @@ public:
{}
Point& ImpGetLineVersatzPoint(SdrEdgeLineCode eLineCode);
- const Point& ImpGetLineVersatzPoint(SdrEdgeLineCode eLineCode) const { return ((SdrEdgeInfoRec*)this)->ImpGetLineVersatzPoint(eLineCode); }
+ const Point& ImpGetLineVersatzPoint(SdrEdgeLineCode eLineCode) const { return const_cast<SdrEdgeInfoRec*>(this)->ImpGetLineVersatzPoint(eLineCode); }
sal_uInt16 ImpGetPolyIdx(SdrEdgeLineCode eLineCode, const XPolygon& rXP) const;
bool ImpIsHorzLine(SdrEdgeLineCode eLineCode, const XPolygon& rXP) const;
void ImpSetLineVersatz(SdrEdgeLineCode eLineCode, const XPolygon& rXP, long nVal);
diff --git a/include/svx/svdtrans.hxx b/include/svx/svdtrans.hxx
index c37ac4fb1ac1..dd4945f81890 100644
--- a/include/svx/svdtrans.hxx
+++ b/include/svx/svdtrans.hxx
@@ -283,7 +283,7 @@ class SVX_DLLPUBLIC SdrFormatter {
FieldUnit eDstFU;
private:
SVX_DLLPRIVATE void Undirty();
- SVX_DLLPRIVATE void ForceUndirty() const { if (bDirty) ((SdrFormatter*)this)->Undirty(); }
+ SVX_DLLPRIVATE void ForceUndirty() const { if (bDirty) const_cast<SdrFormatter*>(this)->Undirty(); }
public:
SdrFormatter(MapUnit eSrc, MapUnit eDst)
: nMul_(0)