Kaydet (Commit) 14527345 authored tarafından Caolán McNamara's avatar Caolán McNamara

only use of SfxInterface::GetName is for debugging info

where GetClasName is good enough

Change-Id: I242d5792d3ce1323da59a354cae47933cf90569b
üst 836a93e2
...@@ -63,8 +63,6 @@ public: ...@@ -63,8 +63,6 @@ public:
const char* GetClassName() const { return pName; } const char* GetClassName() const { return pName; }
bool HasName() const { return 0 != aNameResId.GetId(); } bool HasName() const { return 0 != aNameResId.GetId(); }
OUString GetName() const
{ return HasName() ? aNameResId.toString() : OUString(); }
const SfxInterface* GetGenoType() const { return pGenoType; } const SfxInterface* GetGenoType() const { return pGenoType; }
......
...@@ -117,8 +117,6 @@ SfxShell::SfxShell( SfxViewShell *pViewSh ) ...@@ -117,8 +117,6 @@ SfxShell::SfxShell( SfxViewShell *pViewSh )
SfxShell::~SfxShell() SfxShell::~SfxShell()
{ {
delete pImp; delete pImp;
} }
...@@ -305,7 +303,7 @@ void SfxShell::DoActivate_Impl( SfxViewFrame *pFrame, bool bMDI ) ...@@ -305,7 +303,7 @@ void SfxShell::DoActivate_Impl( SfxViewFrame *pFrame, bool bMDI )
#endif #endif
SAL_INFO( SAL_INFO(
"sfx.control", "sfx.control",
"SfxShell::DoActivate() " << this << " " << GetInterface()->GetName() "SfxShell::DoActivate() " << this << " " << GetInterface()->GetClassName()
<< " bMDI " << (bMDI ? "MDI" : "")); << " bMDI " << (bMDI ? "MDI" : ""));
if ( bMDI ) if ( bMDI )
...@@ -328,7 +326,7 @@ void SfxShell::DoDeactivate_Impl( SfxViewFrame *pFrame, bool bMDI ) ...@@ -328,7 +326,7 @@ void SfxShell::DoDeactivate_Impl( SfxViewFrame *pFrame, bool bMDI )
#endif #endif
SAL_INFO( SAL_INFO(
"sfx.control", "sfx.control",
"SfxShell::DoDeactivate()" << this << " " << GetInterface()->GetName() "SfxShell::DoDeactivate()" << this << " " << GetInterface()->GetClassName()
<< " bMDI " << (bMDI ? "MDI" : "")); << " bMDI " << (bMDI ? "MDI" : ""));
// Only when it comes from a Frame // Only when it comes from a Frame
......
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