diff options
Diffstat (limited to 'sw/source/filter/inc/rtf.hxx')
-rw-r--r-- | sw/source/filter/inc/rtf.hxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sw/source/filter/inc/rtf.hxx b/sw/source/filter/inc/rtf.hxx index d1e4d3fa9e3a..f0bff55c5923 100644 --- a/sw/source/filter/inc/rtf.hxx +++ b/sw/source/filter/inc/rtf.hxx @@ -24,21 +24,24 @@ class RTFSurround { union { - struct { + struct + { sal_uInt8 nGoldCut : 1; // should ideally be bool sal_uInt8 nOrder : 4; sal_uInt8 nJunk : 3; } Flags; sal_uInt8 nVal; } Value; + public: - RTFSurround( bool bGoldCut, sal_uInt8 nOrder ) { + RTFSurround(bool bGoldCut, sal_uInt8 nOrder) + { Value.Flags.nGoldCut = sal_uInt8(bGoldCut); Value.Flags.nOrder = nOrder; Value.Flags.nJunk = 0; } - sal_uInt16 GetValue() const { return Value.nVal; } + sal_uInt16 GetValue() const { return Value.nVal; } }; #endif // INCLUDED_SW_SOURCE_FILTER_INC_RTF_HXX |