summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-28 10:24:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-28 10:24:53 +0200
commitd358fc1a455de153a197081948a271f612a495c3 (patch)
treef25c16993974a0e54e513113732d9a81470a4a04 /editeng
parent10613d46cbad88a55e511b8739cd1158fea0c785 (diff)
-Werror=ignored-qualifiers (GCC 8)
Change-Id: I2a43ce3ca6af87ac53dd534c0c37150a000e7013
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/frmitems.cxx4
-rw-r--r--editeng/source/items/paraitem.cxx2
-rw-r--r--editeng/source/items/textitem.cxx6
-rw-r--r--editeng/source/rtf/rtfitem.cxx6
4 files changed, 9 insertions, 9 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index b98cd2507942..28c56dcd3bf6 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -1562,7 +1562,7 @@ sal_uInt16 SvxShadowItem::GetEnumValue() const
void SvxShadowItem::SetEnumValue( sal_uInt16 nVal )
{
- SetLocation( (const SvxShadowLocation)nVal );
+ SetLocation( (SvxShadowLocation)nVal );
}
void SvxShadowItem::dumpAsXml(xmlTextWriterPtr pWriter) const
@@ -3021,7 +3021,7 @@ SfxPoolItem* SvxFormatBreakItem::Create( SvStream& rStrm, sal_uInt16 nVersion )
rStrm.ReadSChar( eBreak );
if( FMTBREAK_NOAUTO > nVersion )
rStrm.ReadSChar( bDummy );
- return new SvxFormatBreakItem( (const SvxBreak)eBreak, Which() );
+ return new SvxFormatBreakItem( (SvxBreak)eBreak, Which() );
}
diff --git a/editeng/source/items/paraitem.cxx b/editeng/source/items/paraitem.cxx
index 71db51db0178..164b00a2d92c 100644
--- a/editeng/source/items/paraitem.cxx
+++ b/editeng/source/items/paraitem.cxx
@@ -444,7 +444,7 @@ sal_uInt16 SvxAdjustItem::GetEnumValue() const
void SvxAdjustItem::SetEnumValue( sal_uInt16 nVal )
{
- SetAdjust( (const SvxAdjust)nVal );
+ SetAdjust( (SvxAdjust)nVal );
}
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx
index bb6b66e2ad31..690b54a8d55e 100644
--- a/editeng/source/items/textitem.cxx
+++ b/editeng/source/items/textitem.cxx
@@ -468,7 +468,7 @@ SfxPoolItem* SvxPostureItem::Create(SvStream& rStrm, sal_uInt16) const
{
sal_uInt8 nPosture;
rStrm.ReadUChar( nPosture );
- return new SvxPostureItem( (const FontItalic)nPosture, Which() );
+ return new SvxPostureItem( (FontItalic)nPosture, Which() );
}
@@ -2099,7 +2099,7 @@ SfxPoolItem* SvxCaseMapItem::Create(SvStream& rStrm, sal_uInt16) const
{
sal_uInt8 cMap;
rStrm.ReadUChar( cMap );
- return new SvxCaseMapItem( (const SvxCaseMap)cMap, Which() );
+ return new SvxCaseMapItem( (SvxCaseMap)cMap, Which() );
}
@@ -2275,7 +2275,7 @@ sal_uInt16 SvxEscapementItem::GetEnumValue() const
void SvxEscapementItem::SetEnumValue( sal_uInt16 nVal )
{
- SetEscapement( (const SvxEscapement)nVal );
+ SetEscapement( (SvxEscapement)nVal );
}
bool SvxEscapementItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx
index 71a831752a24..4ce7e8cfb5c0 100644
--- a/editeng/source/rtf/rtfitem.cxx
+++ b/editeng/source/rtf/rtfitem.cxx
@@ -441,7 +441,7 @@ void SvxRTFParser::ReadAttr( int nToken, SfxItemSet* pSet )
if( nTokenValue > 200 ) // Data value for PropLnSp
nTokenValue = 200; // is one BYTE !!!
- aLSpace.SetPropLineSpace( (const sal_uInt8)nTokenValue );
+ aLSpace.SetPropLineSpace( (sal_uInt8)nTokenValue );
aLSpace.SetLineSpaceRule( SvxLineSpaceRule::Auto );
pSet->Put( aLSpace );
@@ -479,7 +479,7 @@ void SvxRTFParser::ReadAttr( int nToken, SfxItemSet* pSet )
CalcValue();
if (eLnSpc != SvxLineSpaceRule::Auto)
- aLSpace.SetLineHeight( (const sal_uInt16)nTokenValue );
+ aLSpace.SetLineHeight( (sal_uInt16)nTokenValue );
aLSpace.SetLineSpaceRule(eLnSpc);
pSet->Put(aLSpace);
@@ -660,7 +660,7 @@ SET_FONTALIGNMENT:
// if( IsCalcValue() )
// CalcValue();
SvxFontHeightItem aTmpItem(
- (const sal_uInt16)nTokenValue, 100,
+ (sal_uInt16)nTokenValue, 100,
SID_ATTR_CHAR_FONTHEIGHT );
SetScriptAttr( eCharType, *pSet, aTmpItem );
}