Kaydet (Commit) 472388fd authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedfields in basctl

Change-Id: I565bd86167c93ece1d65ce8a3b148144f5a7107a
üst 70d14d2c
...@@ -67,7 +67,7 @@ void LibBoxControl::StateChanged( sal_uInt16, SfxItemState eState, const SfxPool ...@@ -67,7 +67,7 @@ void LibBoxControl::StateChanged( sal_uInt16, SfxItemState eState, const SfxPool
VclPtr<vcl::Window> LibBoxControl::CreateItemWindow( vcl::Window *pParent ) VclPtr<vcl::Window> LibBoxControl::CreateItemWindow( vcl::Window *pParent )
{ {
return VclPtr<LibBox>::Create( pParent, m_xFrame ); return VclPtr<LibBox>::Create( pParent );
} }
...@@ -133,9 +133,8 @@ void DocListenerBox::onDocumentModeChanged( const ScriptDocument& /*_rDocument*/ ...@@ -133,9 +133,8 @@ void DocListenerBox::onDocumentModeChanged( const ScriptDocument& /*_rDocument*/
// not interested in // not interested in
} }
LibBox::LibBox( vcl::Window* pParent, const uno::Reference< frame::XFrame >& rFrame ) : LibBox::LibBox( vcl::Window* pParent ) :
DocListenerBox( pParent ), DocListenerBox( pParent )
m_xFrame( rFrame )
{ {
FillBox(); FillBox();
bIgnoreSelect = true; // do not yet transfer select of 0 bIgnoreSelect = true; // do not yet transfer select of 0
......
...@@ -77,7 +77,6 @@ private: ...@@ -77,7 +77,6 @@ private:
OUString aCurText; OUString aCurText;
bool bIgnoreSelect; bool bIgnoreSelect;
bool bFillBox; bool bFillBox;
css::uno::Reference< css::frame::XFrame > m_xFrame;
static void ReleaseFocus(); static void ReleaseFocus();
void InsertEntries( const ScriptDocument& rDocument, LibraryLocation eLocation ); void InsertEntries( const ScriptDocument& rDocument, LibraryLocation eLocation );
...@@ -93,8 +92,7 @@ protected: ...@@ -93,8 +92,7 @@ protected:
virtual bool PreNotify( NotifyEvent& rNEvt ) override; virtual bool PreNotify( NotifyEvent& rNEvt ) override;
public: public:
LibBox( vcl::Window* pParent, LibBox( vcl::Window* pParent );
const css::uno::Reference< css::frame::XFrame >& rFrame );
virtual ~LibBox(); virtual ~LibBox();
virtual void dispose() override; virtual void dispose() override;
......
...@@ -534,8 +534,6 @@ public: ...@@ -534,8 +534,6 @@ public:
class UnoTypeCodeCompletetor class UnoTypeCodeCompletetor
{ {
private: private:
css::uno::Reference< css::lang::XMultiServiceFactory > xFactory;
css::uno::Reference< css::reflection::XIdlReflection > xRefl;
css::uno::Reference< css::reflection::XIdlClass > xClass; css::uno::Reference< css::reflection::XIdlClass > xClass;
bool bCanComplete; bool bCanComplete;
......
...@@ -732,7 +732,7 @@ void LibInfos::InsertInfo ( ...@@ -732,7 +732,7 @@ void LibInfos::InsertInfo (
{ {
Key aKey(rDocument, rLibName); Key aKey(rDocument, rLibName);
m_aMap.erase(aKey); m_aMap.erase(aKey);
m_aMap.insert(Map::value_type(aKey, Item(rDocument, rCurrentName, eCurrentType))); m_aMap.insert(Map::value_type(aKey, Item(rCurrentName, eCurrentType)));
} }
void LibInfos::RemoveInfoFor (ScriptDocument const& rDocument) void LibInfos::RemoveInfoFor (ScriptDocument const& rDocument)
...@@ -771,11 +771,9 @@ size_t LibInfos::Key::Hash::operator () (Key const& rKey) const ...@@ -771,11 +771,9 @@ size_t LibInfos::Key::Hash::operator () (Key const& rKey) const
} }
LibInfos::Item::Item ( LibInfos::Item::Item (
ScriptDocument const& rDocument,
OUString const& rCurrentName, OUString const& rCurrentName,
ItemType eCurrentType ItemType eCurrentType
) : ) :
m_aDocument(rDocument),
m_aCurrentName(rCurrentName), m_aCurrentName(rCurrentName),
m_eCurrentType(eCurrentType) m_eCurrentType(eCurrentType)
{ } { }
......
...@@ -272,12 +272,11 @@ public: ...@@ -272,12 +272,11 @@ public:
class Item class Item
{ {
private: private:
ScriptDocument m_aDocument;
OUString m_aCurrentName; OUString m_aCurrentName;
ItemType m_eCurrentType; ItemType m_eCurrentType;
public: public:
Item (ScriptDocument const&, OUString const& rCurrentName, ItemType eCurrentType); Item (OUString const& rCurrentName, ItemType eCurrentType);
~Item (); ~Item ();
const OUString& GetCurrentName() const { return m_aCurrentName; } const OUString& GetCurrentName() const { return m_aCurrentName; }
ItemType GetCurrentType() const { return m_eCurrentType; } ItemType GetCurrentType() const { return m_eCurrentType; }
......
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