summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-21 15:46:10 +0200
committerNoel Grandin <noel@peralex.com>2014-09-22 07:29:17 +0200
commit3ddae219e4be882704ffd917e80c1d8b22c5d48b (patch)
tree1193b8001ffe9f755b12bd2e1f017a402fd710c6 /sfx2
parent764e3016b62665281539af4e990ca4ff0445c26c (diff)
remove unused fields pName and pMethodName in SfxSlot class
Change-Id: Icca5a0dee296fae1abeb78ea8ffa2f9e934bb111
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/shell.cxx1
-rw-r--r--sfx2/source/sidebar/Deck.cxx5
2 files changed, 2 insertions, 4 deletions
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");
}
}