diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-24 21:05:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-25 09:54:58 +0000 |
commit | 1452734589500a7c4da3ebf0e5946f976ad2e79d (patch) | |
tree | b8c05ee23c71cf3de6e81c4d48b076026af6cfcc | |
parent | 836a93e24e4b1db3aa508ed8554ab13bc8788e74 (diff) |
only use of SfxInterface::GetName is for debugging info
where GetClasName is good enough
Change-Id: I242d5792d3ce1323da59a354cae47933cf90569b
-rw-r--r-- | include/sfx2/objface.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/control/shell.cxx | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/include/sfx2/objface.hxx b/include/sfx2/objface.hxx index a667c15bb1b9..db88e6fd7d13 100644 --- a/include/sfx2/objface.hxx +++ b/include/sfx2/objface.hxx @@ -63,8 +63,6 @@ public: const char* GetClassName() const { return pName; } bool HasName() const { return 0 != aNameResId.GetId(); } - OUString GetName() const - { return HasName() ? aNameResId.toString() : OUString(); } const SfxInterface* GetGenoType() const { return pGenoType; } diff --git a/sfx2/source/control/shell.cxx b/sfx2/source/control/shell.cxx index 1365b5414a92..9a844cceea45 100644 --- a/sfx2/source/control/shell.cxx +++ b/sfx2/source/control/shell.cxx @@ -117,8 +117,6 @@ SfxShell::SfxShell( SfxViewShell *pViewSh ) SfxShell::~SfxShell() { - - delete pImp; } @@ -305,7 +303,7 @@ void SfxShell::DoActivate_Impl( SfxViewFrame *pFrame, bool bMDI ) #endif SAL_INFO( "sfx.control", - "SfxShell::DoActivate() " << this << " " << GetInterface()->GetName() + "SfxShell::DoActivate() " << this << " " << GetInterface()->GetClassName() << " bMDI " << (bMDI ? "MDI" : "")); if ( bMDI ) @@ -328,7 +326,7 @@ void SfxShell::DoDeactivate_Impl( SfxViewFrame *pFrame, bool bMDI ) #endif SAL_INFO( "sfx.control", - "SfxShell::DoDeactivate()" << this << " " << GetInterface()->GetName() + "SfxShell::DoDeactivate()" << this << " " << GetInterface()->GetClassName() << " bMDI " << (bMDI ? "MDI" : "")); // Only when it comes from a Frame |