diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/oox/drawingml/drawingmltypes.hxx | 2 | ||||
-rw-r--r-- | include/oox/export/utils.hxx | 2 | ||||
-rw-r--r-- | include/oox/ppt/comments.hxx | 2 |
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); }; |