summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:25:09 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:25:09 +0100
commit54a8e708b4822f6887b5d18af39ccb87387e0774 (patch)
tree8b94f887d875dedffc39974347fc075a3765cd93 /include/editeng
parent2e1559cd85d2f1b4e308d63d34bf3632ba4b6d4b (diff)
More loplugin:cstylecast: editeng
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: I09a4d688e6f3c1ecbe05a7d27ebd955e8ba1eb65
Diffstat (limited to 'include/editeng')
-rw-r--r--include/editeng/adjustitem.hxx2
-rw-r--r--include/editeng/boxitem.hxx4
-rw-r--r--include/editeng/brushitem.hxx2
-rw-r--r--include/editeng/fhgtitem.hxx4
-rw-r--r--include/editeng/formatbreakitem.hxx2
-rw-r--r--include/editeng/lrspitem.hxx4
-rw-r--r--include/editeng/pbinitem.hxx2
-rw-r--r--include/editeng/svxfont.hxx2
-rw-r--r--include/editeng/ulspitem.hxx2
9 files changed, 12 insertions, 12 deletions
diff --git a/include/editeng/adjustitem.hxx b/include/editeng/adjustitem.hxx
index b74c45ef9596..7ef144c78d8a 100644
--- a/include/editeng/adjustitem.hxx
+++ b/include/editeng/adjustitem.hxx
@@ -32,7 +32,7 @@ class SvXMLUnitConverter;
[Description]
This item describes the row orientation.
*/
-#define ADJUST_LASTBLOCK_VERSION ((sal_uInt16)0x0001)
+#define ADJUST_LASTBLOCK_VERSION (sal_uInt16(0x0001))
class EDITENG_DLLPUBLIC SvxAdjustItem : public SfxEnumItemInterface
{
diff --git a/include/editeng/boxitem.hxx b/include/editeng/boxitem.hxx
index d2c155e822b3..a9b70f4c288a 100644
--- a/include/editeng/boxitem.hxx
+++ b/include/editeng/boxitem.hxx
@@ -43,12 +43,12 @@ enum class SvxBoxItemLine
This version causes SvxBoxItem to store the 4 cell spacing distances separately
when serializing to stream.
*/
-#define BOX_4DISTS_VERSION ((sal_uInt16)1)
+#define BOX_4DISTS_VERSION (sal_uInt16(1))
/**
This version causes SvxBoxItem to store the styles for its border lines when
serializing to stream.
*/
-#define BOX_BORDER_STYLE_VERSION ((sal_uInt16)2)
+#define BOX_BORDER_STYLE_VERSION (sal_uInt16(2))
class EDITENG_DLLPUBLIC SvxBoxItem : public SfxPoolItem
{
diff --git a/include/editeng/brushitem.hxx b/include/editeng/brushitem.hxx
index 8aa177aa2adb..2275ed31d68a 100644
--- a/include/editeng/brushitem.hxx
+++ b/include/editeng/brushitem.hxx
@@ -32,7 +32,7 @@
class Graphic;
class GraphicObject;
-#define BRUSH_GRAPHIC_VERSION ((sal_uInt16)0x0001)
+#define BRUSH_GRAPHIC_VERSION (sal_uInt16(0x0001))
enum SvxGraphicPosition
{
diff --git a/include/editeng/fhgtitem.hxx b/include/editeng/fhgtitem.hxx
index a982e7a41e90..799c17cc6da3 100644
--- a/include/editeng/fhgtitem.hxx
+++ b/include/editeng/fhgtitem.hxx
@@ -33,8 +33,8 @@ class SvXMLUnitConverter;
This item describes the font height
*/
-#define FONTHEIGHT_16_VERSION ((sal_uInt16)0x0001)
-#define FONTHEIGHT_UNIT_VERSION ((sal_uInt16)0x0002)
+#define FONTHEIGHT_16_VERSION (sal_uInt16(0x0001))
+#define FONTHEIGHT_UNIT_VERSION (sal_uInt16(0x0002))
class EDITENG_DLLPUBLIC SvxFontHeightItem : public SfxPoolItem
{
diff --git a/include/editeng/formatbreakitem.hxx b/include/editeng/formatbreakitem.hxx
index 495ff3bc975a..771cef8f10f5 100644
--- a/include/editeng/formatbreakitem.hxx
+++ b/include/editeng/formatbreakitem.hxx
@@ -31,7 +31,7 @@
This item describes a wrap-attribute
Automatic?, Page or column break, before or after?
*/
-#define FMTBREAK_NOAUTO ((sal_uInt16)0x0001)
+#define FMTBREAK_NOAUTO (sal_uInt16(0x0001))
class EDITENG_DLLPUBLIC SvxFormatBreakItem : public SfxEnumItem<SvxBreak>
{
diff --git a/include/editeng/lrspitem.hxx b/include/editeng/lrspitem.hxx
index 5d6c576f28f3..4a2d9bd3992d 100644
--- a/include/editeng/lrspitem.hxx
+++ b/include/editeng/lrspitem.hxx
@@ -44,9 +44,9 @@
*/
#define LRSPACE_16_VERSION ((sal_uInt16)0x0001)
-#define LRSPACE_TXTLEFT_VERSION ((sal_uInt16)0x0002)
+#define LRSPACE_TXTLEFT_VERSION (sal_uInt16(0x0002))
#define LRSPACE_AUTOFIRST_VERSION ((sal_uInt16)0x0003)
-#define LRSPACE_NEGATIVE_VERSION ((sal_uInt16)0x0004)
+#define LRSPACE_NEGATIVE_VERSION (sal_uInt16(0x0004))
class EDITENG_DLLPUBLIC SvxLRSpaceItem : public SfxPoolItem
{
diff --git a/include/editeng/pbinitem.hxx b/include/editeng/pbinitem.hxx
index 62c6120652bf..324bda43e5f9 100644
--- a/include/editeng/pbinitem.hxx
+++ b/include/editeng/pbinitem.hxx
@@ -24,7 +24,7 @@
// define ----------------------------------------------------------------
-#define PAPERBIN_PRINTER_SETTINGS ((sal_uInt8)0xFF)
+#define PAPERBIN_PRINTER_SETTINGS (sal_uInt8(0xFF))
// class SvxPaperBinItem -------------------------------------------------
diff --git a/include/editeng/svxfont.hxx b/include/editeng/svxfont.hxx
index 969ac9101ce6..8b821a5917f4 100644
--- a/include/editeng/svxfont.hxx
+++ b/include/editeng/svxfont.hxx
@@ -55,7 +55,7 @@ public:
sal_uInt8 GetPropr() const { return nPropr; }
void SetPropr( const sal_uInt8 nNewPropr ) { nPropr = nNewPropr; }
void SetProprRel( const sal_uInt8 nNewPropr )
- { SetPropr( (sal_uInt8)( (long)nNewPropr * (long)nPropr / 100L ) ); }
+ { SetPropr( static_cast<sal_uInt8>( static_cast<long>(nNewPropr) * static_cast<long>(nPropr) / 100L ) ); }
// Kerning
short GetFixKerning() const { return nKern; }
diff --git a/include/editeng/ulspitem.hxx b/include/editeng/ulspitem.hxx
index 559638d72a85..5734afbf5696 100644
--- a/include/editeng/ulspitem.hxx
+++ b/include/editeng/ulspitem.hxx
@@ -30,7 +30,7 @@
This item describes the Upper- and Lower space of a page or paragraph.
*/
-#define ULSPACE_16_VERSION ((sal_uInt16)0x0001)
+#define ULSPACE_16_VERSION (sal_uInt16(0x0001))
class EDITENG_DLLPUBLIC SvxULSpaceItem : public SfxPoolItem
{