summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:19:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:19:10 +0100
commit99e118af6a7e296b3d6dcb812237f27a344c601a (patch)
tree0d063d0691f462d7eb32d74a30b09f7821a09108 /include
parentd1a510c9bde5eb9ca8ec1aa3e81782b0615fc95b (diff)
More loplugin:cstylecast: oox
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I8fd61e3220a4b9e08d4f97acde28600f31d448ca
Diffstat (limited to 'include')
-rw-r--r--include/oox/drawingml/drawingmltypes.hxx2
-rw-r--r--include/oox/export/utils.hxx2
-rw-r--r--include/oox/ppt/comments.hxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/oox/drawingml/drawingmltypes.hxx b/include/oox/drawingml/drawingmltypes.hxx
index 689317505249..c4f05fcdd84e 100644
--- a/include/oox/drawingml/drawingmltypes.hxx
+++ b/include/oox/drawingml/drawingmltypes.hxx
@@ -187,7 +187,7 @@ inline sal_Int32 convertEmuToHmm( sal_Int64 nValue )
/** Converts the passed 64-bit integer value from EMUs to Points. */
inline float convertEmuToPoints( sal_Int64 nValue )
{
- return (float) nValue / EMU_PER_PT;
+ return static_cast<float>(nValue) / EMU_PER_PT;
}
/** A structure for a point with 64-bit integer components. */
diff --git a/include/oox/export/utils.hxx b/include/oox/export/utils.hxx
index 74e78a37da33..fbe4c806dd70 100644
--- a/include/oox/export/utils.hxx
+++ b/include/oox/export/utils.hxx
@@ -63,7 +63,7 @@ static constexpr const char* ToPsz10(bool b)
static constexpr sal_Int64 PPTtoEMU( sal_Int32 nPPT )
{
- return (sal_Int64)( (double)nPPT * 1587.5 );
+ return static_cast<sal_Int64>( static_cast<double>(nPPT) * 1587.5 );
}
static constexpr sal_Int64 TwipsToEMU( sal_Int32 nTwips )
diff --git a/include/oox/ppt/comments.hxx b/include/oox/ppt/comments.hxx
index db8a547f11cd..65f719fff9f4 100644
--- a/include/oox/ppt/comments.hxx
+++ b/include/oox/ppt/comments.hxx
@@ -105,7 +105,7 @@ class CommentList
std::vector<Comment> cmLst;
int getSize ()
{
- return (int)cmLst.size();
+ return static_cast<int>(cmLst.size());
}
const Comment& getCommentAtIndex (int index);
};