[Libreoffice-commits] core.git: editeng/source

Stephan Bergmann sbergman at redhat.com
Wed Jun 28 08:25:20 UTC 2017


 editeng/source/items/frmitems.cxx |    4 ++--
 editeng/source/items/paraitem.cxx |    2 +-
 editeng/source/items/textitem.cxx |    6 +++---
 editeng/source/rtf/rtfitem.cxx    |    6 +++---
 4 files changed, 9 insertions(+), 9 deletions(-)

New commits:
commit d358fc1a455de153a197081948a271f612a495c3
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jun 28 10:24:53 2017 +0200

    -Werror=ignored-qualifiers (GCC 8)
    
    Change-Id: I2a43ce3ca6af87ac53dd534c0c37150a000e7013

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 );
                 }


More information about the Libreoffice-commits mailing list