Kaydet (Commit) 21373c75 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedfields in svtools

Change-Id: Idbf5e0d715784a4141b3fc712d104f84bf04dfc6
Reviewed-on: https://gerrit.libreoffice.org/54450Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 9ffdf7ad
...@@ -51,7 +51,6 @@ class SVT_DLLPUBLIC DocumentToGraphicRenderer ...@@ -51,7 +51,6 @@ class SVT_DLLPUBLIC DocumentToGraphicRenderer
css::uno::Reference<css::view::XRenderable> mxRenderable; css::uno::Reference<css::view::XRenderable> mxRenderable;
css::uno::Reference<css::awt::XToolkit> mxToolkit; css::uno::Reference<css::awt::XToolkit> mxToolkit;
css::uno::Any maSelection; css::uno::Any maSelection;
bool mbSelectionOnly;
bool mbIsWriter; bool mbIsWriter;
std::vector<OUString> maChapterNames; std::vector<OUString> maChapterNames;
......
...@@ -37,8 +37,6 @@ private: ...@@ -37,8 +37,6 @@ private:
Reference< XCommandEnvironment > m_xEnv; Reference< XCommandEnvironment > m_xEnv;
::osl::Mutex m_aMutex; ::osl::Mutex m_aMutex;
Sequence< OUString > m_aBlackList; Sequence< OUString > m_aBlackList;
Image m_aFolderImage;
Image m_aFolderExpandedImage;
OUString m_sLastUpdatedDir; OUString m_sLastUpdatedDir;
......
...@@ -339,7 +339,6 @@ public: ...@@ -339,7 +339,6 @@ public:
IntlWrapper aIntlWrapper; IntlWrapper aIntlWrapper;
OUString maViewURL; OUString maViewURL;
OUString maAllFilter;
OUString maCurrentFilter; OUString maCurrentFilter;
Image maFolderImage; Image maFolderImage;
Link<SvtFileView*,void> maOpenDoneLink; Link<SvtFileView*,void> maOpenDoneLink;
...@@ -1450,7 +1449,6 @@ SvtFileView_Impl::SvtFileView_Impl( SvtFileView* pAntiImpl, Reference < XCommand ...@@ -1450,7 +1449,6 @@ SvtFileView_Impl::SvtFileView_Impl( SvtFileView* pAntiImpl, Reference < XCommand
,mxCmdEnv ( xEnv ) ,mxCmdEnv ( xEnv )
{ {
maAllFilter = "*.*";
mpView = VclPtr<ViewTabListBox_Impl>::Create( mpAntiImpl, this, nFlags ); mpView = VclPtr<ViewTabListBox_Impl>::Create( mpAntiImpl, this, nFlags );
mpCurView = mpView; mpCurView = mpView;
mpIconView = VclPtr<IconView>::Create( mpAntiImpl, WB_TABSTOP ); mpIconView = VclPtr<IconView>::Create( mpAntiImpl, WB_TABSTOP );
......
...@@ -15,16 +15,16 @@ ...@@ -15,16 +15,16 @@
FolderTree::FolderTree( vcl::Window* pParent, WinBits nBits ) FolderTree::FolderTree( vcl::Window* pParent, WinBits nBits )
: SvTreeListBox( pParent, nBits | WB_SORT | WB_TABSTOP ) : SvTreeListBox( pParent, nBits | WB_SORT | WB_TABSTOP )
, m_aFolderImage(BitmapEx(RID_BMP_FOLDER))
, m_aFolderExpandedImage(BitmapEx(RID_BMP_FOLDER_OPEN))
{ {
Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext(); Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext();
Reference< XInteractionHandler > xInteractionHandler( Reference< XInteractionHandler > xInteractionHandler(
InteractionHandler::createWithParent(xContext, VCLUnoHelper::GetInterface(GetParentDialog())), UNO_QUERY_THROW ); InteractionHandler::createWithParent(xContext, VCLUnoHelper::GetInterface(GetParentDialog())), UNO_QUERY_THROW );
m_xEnv = new ::ucbhelper::CommandEnvironment( xInteractionHandler, Reference< XProgressHandler >() ); m_xEnv = new ::ucbhelper::CommandEnvironment( xInteractionHandler, Reference< XProgressHandler >() );
SetDefaultCollapsedEntryBmp( m_aFolderImage ); Image aFolderImage(BitmapEx(RID_BMP_FOLDER));
SetDefaultExpandedEntryBmp( m_aFolderExpandedImage ); Image aFolderExpandedImage(BitmapEx(RID_BMP_FOLDER_OPEN));
SetDefaultCollapsedEntryBmp( aFolderImage );
SetDefaultExpandedEntryBmp( aFolderExpandedImage );
} }
void FolderTree::RequestingChildren( SvTreeListEntry* pEntry ) void FolderTree::RequestingChildren( SvTreeListEntry* pEntry )
......
...@@ -75,8 +75,6 @@ namespace validation ...@@ -75,8 +75,6 @@ namespace validation
{ {
private: private:
TransitionTable m_aTransitions; TransitionTable m_aTransitions;
const sal_Unicode m_cThSep;
const sal_Unicode m_cDecSep;
public: public:
NumberValidator( const sal_Unicode _cThSep, const sal_Unicode _cDecSep ); NumberValidator( const sal_Unicode _cThSep, const sal_Unicode _cDecSep );
...@@ -122,8 +120,6 @@ namespace validation ...@@ -122,8 +120,6 @@ namespace validation
} }
NumberValidator::NumberValidator( const sal_Unicode _cThSep, const sal_Unicode _cDecSep ) NumberValidator::NumberValidator( const sal_Unicode _cThSep, const sal_Unicode _cDecSep )
:m_cThSep( _cThSep )
,m_cDecSep( _cDecSep )
{ {
// build up our transition table // build up our transition table
...@@ -142,7 +138,7 @@ namespace validation ...@@ -142,7 +138,7 @@ namespace validation
lcl_insertSignTransitions( rRow, DIGIT_PRE_COMMA ); lcl_insertSignTransitions( rRow, DIGIT_PRE_COMMA );
// common transitions for the two pre-comma states // common transitions for the two pre-comma states
lcl_insertCommonPreCommaTransitions( rRow, m_cThSep, m_cDecSep ); lcl_insertCommonPreCommaTransitions( rRow, _cThSep, _cDecSep );
// the exponent may start here // the exponent may start here
// (this would mean string like "_+e10_", but this is a valid fragment, though no valid number) // (this would mean string like "_+e10_", but this is a valid fragment, though no valid number)
...@@ -154,7 +150,7 @@ namespace validation ...@@ -154,7 +150,7 @@ namespace validation
StateTransitions& rRow = m_aTransitions[ DIGIT_PRE_COMMA ]; StateTransitions& rRow = m_aTransitions[ DIGIT_PRE_COMMA ];
// common transitions for the two pre-comma states // common transitions for the two pre-comma states
lcl_insertCommonPreCommaTransitions( rRow, m_cThSep, m_cDecSep ); lcl_insertCommonPreCommaTransitions( rRow, _cThSep, _cDecSep );
// the exponent may start here // the exponent may start here
lcl_insertStartExponentTransition( rRow ); lcl_insertStartExponentTransition( rRow );
......
...@@ -48,7 +48,6 @@ DocumentToGraphicRenderer::DocumentToGraphicRenderer( const Reference<XComponent ...@@ -48,7 +48,6 @@ DocumentToGraphicRenderer::DocumentToGraphicRenderer( const Reference<XComponent
mxController( mxModel->getCurrentController() ), mxController( mxModel->getCurrentController() ),
mxRenderable (mxDocument, uno::UNO_QUERY ), mxRenderable (mxDocument, uno::UNO_QUERY ),
mxToolkit( VCLUnoHelper::CreateToolkit() ), mxToolkit( VCLUnoHelper::CreateToolkit() ),
mbSelectionOnly( bSelectionOnly ),
mbIsWriter( false ) mbIsWriter( false )
{ {
try try
...@@ -64,7 +63,7 @@ DocumentToGraphicRenderer::DocumentToGraphicRenderer( const Reference<XComponent ...@@ -64,7 +63,7 @@ DocumentToGraphicRenderer::DocumentToGraphicRenderer( const Reference<XComponent
{ {
} }
if (!(mbSelectionOnly && mxController.is())) if (!(bSelectionOnly && mxController.is()))
return; return;
try try
......
...@@ -105,7 +105,6 @@ namespace svt ...@@ -105,7 +105,6 @@ namespace svt
private: private:
INetURLObject m_aURL; INetURLObject m_aURL;
OUString m_sLocalName; // redundant - last segment of m_aURL
util::DateTime m_aLastModified; // date of last modification as reported by UCP util::DateTime m_aLastModified; // date of last modification as reported by UCP
TemplateFolderContent m_aSubContents; // sorted (by name) list of the children TemplateFolderContent m_aSubContents; // sorted (by name) list of the children
...@@ -143,7 +142,6 @@ namespace svt ...@@ -143,7 +142,6 @@ namespace svt
:m_aURL( _rURL ) :m_aURL( _rURL )
{ {
DBG_ASSERT( INetProtocol::NotValid != m_aURL.GetProtocol(), "TemplateContent::TemplateContent: invalid URL!" ); DBG_ASSERT( INetProtocol::NotValid != m_aURL.GetProtocol(), "TemplateContent::TemplateContent: invalid URL!" );
m_sLocalName = m_aURL.getName();
implResetDate(); implResetDate();
} }
......
...@@ -49,14 +49,13 @@ namespace svt { namespace uno ...@@ -49,14 +49,13 @@ namespace svt { namespace uno
const sal_Int16 i_nPageId ) const sal_Int16 i_nPageId )
:m_xController( i_rController ) :m_xController( i_rController )
,m_xWizardPage() ,m_xWizardPage()
,m_nPageId( i_nPageId )
{ {
ENSURE_OR_THROW( m_xController.is(), "no controller" ); ENSURE_OR_THROW( m_xController.is(), "no controller" );
try try
{ {
m_xWizardPage.set( m_xController->createPage( m_xWizardPage.set( m_xController->createPage(
Reference< XWindow >( i_rParent.GetComponentInterface(), UNO_QUERY_THROW ), Reference< XWindow >( i_rParent.GetComponentInterface(), UNO_QUERY_THROW ),
m_nPageId i_nPageId
), UNO_SET_THROW ); ), UNO_SET_THROW );
Reference< XWindow > xPageWindow( m_xWizardPage->getWindow(), UNO_SET_THROW ); Reference< XWindow > xPageWindow( m_xWizardPage->getWindow(), UNO_SET_THROW );
......
...@@ -56,7 +56,6 @@ namespace svt { namespace uno ...@@ -56,7 +56,6 @@ namespace svt { namespace uno
private: private:
const css::uno::Reference< css::ui::dialogs::XWizardController > m_xController; const css::uno::Reference< css::ui::dialogs::XWizardController > m_xController;
css::uno::Reference< css::ui::dialogs::XWizardPage > m_xWizardPage; css::uno::Reference< css::ui::dialogs::XWizardPage > m_xWizardPage;
const sal_Int16 m_nPageId;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment