summaryrefslogtreecommitdiffstats
path: root/sc/source/filter/xml/XMLDetectiveContext.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-22 16:06:44 +0200
committerNoel Grandin <noel@peralex.com>2014-10-23 12:36:16 +0200
commit6a097a7d964a22fbff8bfa9552c77b11447691bb (patch)
tree5c86335f81902bae4f6f765893bc847d89ee24d0 /sc/source/filter/xml/XMLDetectiveContext.hxx
parentloplugin: cstylecast (diff)
downloadcore-6a097a7d964a22fbff8bfa9552c77b11447691bb.tar.gz
core-6a097a7d964a22fbff8bfa9552c77b11447691bb.zip
loplugin: cstylecast
Change-Id: I8c7cd4c2cdc134556c2c664a22e2048b51a3b98e
Diffstat (limited to 'sc/source/filter/xml/XMLDetectiveContext.hxx')
-rw-r--r--sc/source/filter/xml/XMLDetectiveContext.hxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/sc/source/filter/xml/XMLDetectiveContext.hxx b/sc/source/filter/xml/XMLDetectiveContext.hxx
index 12b0265abc10..38f22eaab528 100644
--- a/sc/source/filter/xml/XMLDetectiveContext.hxx
+++ b/sc/source/filter/xml/XMLDetectiveContext.hxx
@@ -24,11 +24,10 @@
#include <com/sun/star/table/CellRangeAddress.hpp>
#include "detfunc.hxx"
#include "detdata.hxx"
+#include "xmlimprt.hxx"
#include <list>
-class ScXMLImport;
-
struct ScMyImpDetectiveObj
{
ScRange aSourceRange;
@@ -78,8 +77,8 @@ class ScXMLDetectiveContext : public SvXMLImportContext
private:
ScMyImpDetectiveObjVec* pDetectiveObjVec;
- const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
- ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
+ const ScXMLImport& GetScImport() const { return static_cast<const ScXMLImport&>(GetImport()); }
+ ScXMLImport& GetScImport() { return static_cast<ScXMLImport&>(GetImport()); }
public:
ScXMLDetectiveContext(
@@ -105,8 +104,8 @@ private:
ScMyImpDetectiveObj aDetectiveObj;
bool bValid;
- const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
- ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
+ const ScXMLImport& GetScImport() const { return static_cast<const ScXMLImport&>(GetImport()); }
+ ScXMLImport& GetScImport() { return static_cast<ScXMLImport&>(GetImport()); }
public:
ScXMLDetectiveHighlightedContext(
@@ -132,8 +131,8 @@ private:
ScMyImpDetectiveOp aDetectiveOp;
bool bHasType;
- const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
- ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
+ const ScXMLImport& GetScImport() const { return static_cast<const ScXMLImport&>(GetImport()); }
+ ScXMLImport& GetScImport() { return static_cast<ScXMLImport&>(GetImport()); }
public:
ScXMLDetectiveOperationContext(