-Werror,-Wunused-private-field (Clang towards 3.2)

Change-Id: Ifff80c025d9e3309190330931e1eb49e8ea7f9e4
This commit is contained in:
Stephan Bergmann
2012-08-16 11:07:42 +02:00
parent d8d7bd68ab
commit 751eca72f1
6 changed files with 5 additions and 18 deletions

View File

@@ -46,7 +46,6 @@ class SvxBrushItem;
class Font; class Font;
class Graphic; class Graphic;
class SvxNodeNum; class SvxNodeNum;
class BitmapEx;
namespace com{namespace sun{ namespace star{ namespace com{namespace sun{ namespace star{
namespace text{ namespace text{
class XNumberingFormatter; class XNumberingFormatter;
@@ -161,8 +160,6 @@ private:
String sCharStyleName; // Character Style String sCharStyleName; // Character Style
BitmapEx* pScaledImageCache; // Image scaled to aGraphicSize, only cached for WINDOW/VDEV
DECL_STATIC_LINK( SvxNumberFormat, GraphicArrived, void * ); DECL_STATIC_LINK( SvxNumberFormat, GraphicArrived, void * );
virtual void NotifyGraphicArrived(); virtual void NotifyGraphicArrived();
public: public:

View File

@@ -163,7 +163,6 @@ class EDITENG_DLLPUBLIC SvxAutoCorrectLanguageLists
Date aModifiedDate; Date aModifiedDate;
Time aModifiedTime, aLastCheckTime; Time aModifiedTime, aLastCheckTime;
LanguageType eLanguage; //LANGUAGE_DONTKNOW use for all languages
SvStringsISortDtor* pCplStt_ExcptLst; SvStringsISortDtor* pCplStt_ExcptLst;
SvStringsISortDtor* pWrdStt_ExcptLst; SvStringsISortDtor* pWrdStt_ExcptLst;
SvxAutocorrWordList* pAutocorr_List; SvxAutocorrWordList* pAutocorr_List;
@@ -187,8 +186,7 @@ class EDITENG_DLLPUBLIC SvxAutoCorrectLanguageLists
public: public:
SvxAutoCorrectLanguageLists( SvxAutoCorrect& rParent, SvxAutoCorrectLanguageLists( SvxAutoCorrect& rParent,
const String& rShareAutoCorrectFile, const String& rShareAutoCorrectFile,
const String& rUserAutoCorrectFile, const String& rUserAutoCorrectFile);
LanguageType eLang);
~SvxAutoCorrectLanguageLists(); ~SvxAutoCorrectLanguageLists();
// Load, Set, Get - the replacement list // Load, Set, Get - the replacement list

View File

@@ -61,9 +61,7 @@ EditHTMLParser::EditHTMLParser( SvStream& rIn, const String& rBaseURL, SvKeyValu
bInTitle(false), bInTitle(false),
nInTable(0), nInTable(0),
nInCell(0), nInCell(0),
nDefListLevel(0), nDefListLevel(0)
nBulletLevel(0),
nNumberingLevel(0)
{ {
DBG_ASSERT( RTL_TEXTENCODING_DONTKNOW == GetSrcEncoding( ), "EditHTMLParser::EditHTMLParser: Where does the encoding come from?" ); DBG_ASSERT( RTL_TEXTENCODING_DONTKNOW == GetSrcEncoding( ), "EditHTMLParser::EditHTMLParser: Where does the encoding come from?" );
DBG_ASSERT( !IsSwitchToUCS2(), "EditHTMLParser::::EditHTMLParser: Switch to UCS2?" ); DBG_ASSERT( !IsSwitchToUCS2(), "EditHTMLParser::::EditHTMLParser: Switch to UCS2?" );

View File

@@ -58,8 +58,6 @@ private:
sal_uInt8 nInTable; sal_uInt8 nInTable;
sal_uInt8 nInCell; sal_uInt8 nInCell;
sal_uInt8 nDefListLevel; sal_uInt8 nDefListLevel;
sal_uInt8 nBulletLevel;
sal_uInt8 nNumberingLevel;
void StartPara( bool bReal ); void StartPara( bool bReal );
void EndPara( bool bReal ); void EndPara( bool bReal );

View File

@@ -1569,7 +1569,7 @@ sal_Bool SvxAutoCorrect::CreateLanguageFile( LanguageType eLang, sal_Bool bNewFi
{ {
sShareDirFile = sUserDirFile; sShareDirFile = sUserDirFile;
pLists = new SvxAutoCorrectLanguageLists( *this, sShareDirFile, pLists = new SvxAutoCorrectLanguageLists( *this, sShareDirFile,
sUserDirFile, eLang ); sUserDirFile );
pLangTable->insert(eLang, pLists); pLangTable->insert(eLang, pLists);
aLastFileTable.erase(nFndPos); aLastFileTable.erase(nFndPos);
} }
@@ -1580,7 +1580,7 @@ sal_Bool SvxAutoCorrect::CreateLanguageFile( LanguageType eLang, sal_Bool bNewFi
( sShareDirFile = sUserDirFile, bNewFile )) ( sShareDirFile = sUserDirFile, bNewFile ))
{ {
pLists = new SvxAutoCorrectLanguageLists( *this, sShareDirFile, pLists = new SvxAutoCorrectLanguageLists( *this, sShareDirFile,
sUserDirFile, eLang ); sUserDirFile );
pLangTable->insert(eLang, pLists); pLangTable->insert(eLang, pLists);
if (nFndPos != aLastFileTable.end()) if (nFndPos != aLastFileTable.end())
aLastFileTable.erase(nFndPos); aLastFileTable.erase(nFndPos);
@@ -1894,14 +1894,12 @@ String SvxAutoCorrect::GetAutoCorrFileName( LanguageType eLang,
SvxAutoCorrectLanguageLists::SvxAutoCorrectLanguageLists( SvxAutoCorrectLanguageLists::SvxAutoCorrectLanguageLists(
SvxAutoCorrect& rParent, SvxAutoCorrect& rParent,
const String& rShareAutoCorrectFile, const String& rShareAutoCorrectFile,
const String& rUserAutoCorrectFile, const String& rUserAutoCorrectFile)
LanguageType eLang)
: sShareAutoCorrFile( rShareAutoCorrectFile ), : sShareAutoCorrFile( rShareAutoCorrectFile ),
sUserAutoCorrFile( rUserAutoCorrectFile ), sUserAutoCorrFile( rUserAutoCorrectFile ),
aModifiedDate( Date::EMPTY ), aModifiedDate( Date::EMPTY ),
aModifiedTime( Time::EMPTY ), aModifiedTime( Time::EMPTY ),
aLastCheckTime( Time::EMPTY ), aLastCheckTime( Time::EMPTY ),
eLanguage(eLang),
pCplStt_ExcptLst( 0 ), pCplStt_ExcptLst( 0 ),
pWrdStt_ExcptLst( 0 ), pWrdStt_ExcptLst( 0 ),
pAutocorr_List( 0 ), pAutocorr_List( 0 ),

View File

@@ -371,7 +371,6 @@ public:
private: private:
com::sun::star::uno::Reference< com::sun::star::text::XText > mxText; com::sun::star::uno::Reference< com::sun::star::text::XText > mxText;
EditEngine* mpEditEngine;
ESelection maSelection; ESelection maSelection;
}; };
@@ -384,7 +383,6 @@ SvxXMLTextExportComponent::SvxXMLTextExportComponent(
const ::rtl::OUString& rFileName, const ::rtl::OUString& rFileName,
const com::sun::star::uno::Reference< com::sun::star::xml::sax::XDocumentHandler > & xHandler) const com::sun::star::uno::Reference< com::sun::star::xml::sax::XDocumentHandler > & xHandler)
: SvXMLExport( xServiceFactory, rFileName, xHandler, ((frame::XModel*)new SvxSimpleUnoModel()), MAP_CM ), : SvXMLExport( xServiceFactory, rFileName, xHandler, ((frame::XModel*)new SvxSimpleUnoModel()), MAP_CM ),
mpEditEngine( pEditEngine ),
maSelection( rSel ) maSelection( rSel )
{ {
SvxEditEngineSource aEditSource( pEditEngine ); SvxEditEngineSource aEditSource( pEditEngine );