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