From 3ddae219e4be882704ffd917e80c1d8b22c5d48b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 21 Sep 2014 15:46:10 +0200 Subject: remove unused fields pName and pMethodName in SfxSlot class Change-Id: Icca5a0dee296fae1abeb78ea8ffa2f9e934bb111 --- sfx2/source/control/shell.cxx | 1 - sfx2/source/sidebar/Deck.cxx | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/control/shell.cxx b/sfx2/source/control/shell.cxx index 983f36e83b3c..f722a2cd04d6 100644 --- a/sfx2/source/control/shell.cxx +++ b/sfx2/source/control/shell.cxx @@ -585,7 +585,6 @@ void SfxShell::SetVerbs(const com::sun::star::uno::Sequence < com::sun::star::em pNewSlot->fnExec = SFX_STUB_PTR(SfxShell,VerbExec); pNewSlot->fnState = SFX_STUB_PTR(SfxShell,VerbState); pNewSlot->pType = 0; // HACK(SFX_TYPE(SfxVoidItem)) ??? - pNewSlot->pName = strdup (OUStringToOString( aVerbs[n].VerbName, RTL_TEXTENCODING_UTF8 ).getStr()); pNewSlot->pLinkedSlot = 0; pNewSlot->nArgDefCount = 0; pNewSlot->pFirstArgDef = 0; diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx index f08173a9ecc9..20fdb19e7bc7 100644 --- a/sfx2/source/sidebar/Deck.cxx +++ b/sfx2/source/sidebar/Deck.cxx @@ -291,7 +291,7 @@ void Deck::ShowPanel (const Panel& rPanel) -const OUString& GetWindowClassification (const Window* pWindow) +const OUString GetWindowClassification (const Window* pWindow) { const OUString& rsName (pWindow->GetText()); if (!rsName.isEmpty()) @@ -300,8 +300,7 @@ const OUString& GetWindowClassification (const Window* pWindow) } else { - static const OUString aWindow ("window"); - return aWindow; + return OUString("window"); } } -- cgit