summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-04 11:23:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-04 12:06:47 +0200
commitea1839853fbdc49ead92a7cd465e427f4167cea2 (patch)
tree7df5b34bf3c7be380cf13a7ddf5a48021dd1951a /include
parent9ad9c5183f348384b62ec88459a3a5922e423d83 (diff)
loplugin:unusedfields in editeng
Change-Id: I9806d87028a11a8103c35004c87b5098ca591409 Reviewed-on: https://gerrit.libreoffice.org/39495 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/editeng/editdata.hxx17
-rw-r--r--include/editeng/swafopt.hxx8
2 files changed, 2 insertions, 23 deletions
diff --git a/include/editeng/editdata.hxx b/include/editeng/editdata.hxx
index 6b86c4399002..12b6bff6474d 100644
--- a/include/editeng/editdata.hxx
+++ b/include/editeng/editdata.hxx
@@ -223,7 +223,6 @@ struct HtmlImportInfo
HtmlImportState eState;
HtmlTokenId nToken;
- short nTokenValue;
OUString aText;
@@ -249,21 +248,12 @@ struct RtfImportInfo
struct ParagraphInfos
{
ParagraphInfos()
- : nParaHeight( 0 )
- , nLines( 0 )
- , nFirstLineStartX( 0 )
- , nFirstLineOffset( 0 )
- , nFirstLineHeight( 0 )
+ : nFirstLineHeight( 0 )
, nFirstLineTextHeight ( 0 )
, nFirstLineMaxAscent( 0 )
, bValid( false )
{}
- sal_uInt16 nParaHeight;
- sal_uInt16 nLines;
-
- sal_uInt16 nFirstLineStartX;
- sal_uInt16 nFirstLineOffset;
sal_uInt16 nFirstLineHeight;
sal_uInt16 nFirstLineTextHeight;
sal_uInt16 nFirstLineMaxAscent;
@@ -275,7 +265,6 @@ struct EECharAttrib
{
const SfxPoolItem* pAttr;
- sal_Int32 nPara;
sal_Int32 nStart;
sal_Int32 nEnd;
};
@@ -344,8 +333,6 @@ enum EENotifyType
struct EENotify
{
EENotifyType eNotificationType;
- EditEngine* pEditEngine;
- EditView* pEditView;
sal_Int32 nParagraph; // only valid in PARAGRAPHINSERTED/EE_NOTIFY_PARAGRAPHREMOVED
@@ -353,7 +340,7 @@ struct EENotify
sal_Int32 nParam2;
EENotify( EENotifyType eType )
- { eNotificationType = eType; pEditEngine = nullptr; pEditView = nullptr; nParagraph = EE_PARA_NOT_FOUND; nParam1 = 0; nParam2 = 0; }
+ { eNotificationType = eType; nParagraph = EE_PARA_NOT_FOUND; nParam1 = 0; nParam2 = 0; }
};
#endif // INCLUDED_EDITENG_EDITDATA_HXX
diff --git a/include/editeng/swafopt.hxx b/include/editeng/swafopt.hxx
index ad295254c550..726d8a315350 100644
--- a/include/editeng/swafopt.hxx
+++ b/include/editeng/swafopt.hxx
@@ -78,7 +78,6 @@ struct EDITENG_DLLPUBLIC SvxSwAutoFormatFlags
bool bAutoCorrect : 1;
bool bCapitalStartSentence : 1;
bool bCapitalStartWord : 1;
- bool bChkFontAttr : 1;
bool bChgUserColl : 1;
bool bChgEnumNum : 1;
@@ -96,7 +95,6 @@ struct EDITENG_DLLPUBLIC SvxSwAutoFormatFlags
bool bSetBorder : 1;
bool bCreateTable : 1;
bool bReplaceStyles : 1;
- bool bDummy : 1;
bool bWithRedlining : 1;
@@ -116,12 +114,6 @@ struct EDITENG_DLLPUBLIC SvxSwAutoFormatFlags
bool bAutoCmpltKeepList : 1;
- // some dummies for any new options
- bool bDummy6 : 1,
- bDummy7 : 1,
- bDummy8 : 1
- ;
-
SvxSwAutoFormatFlags();
SvxSwAutoFormatFlags( const SvxSwAutoFormatFlags& rAFFlags ) { *this = rAFFlags; }
SvxSwAutoFormatFlags& operator=( const SvxSwAutoFormatFlags& );