From 5d0051ac3733db9f04dd459db46212f70a9c07e9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 28 Nov 2011 10:11:54 +0000 Subject: SfxInterfaces may legally have no translatable ui name --- sfx2/inc/sfx2/objface.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sfx2') diff --git a/sfx2/inc/sfx2/objface.hxx b/sfx2/inc/sfx2/objface.hxx index 7e43c19b1226..c4d38f288345 100644 --- a/sfx2/inc/sfx2/objface.hxx +++ b/sfx2/inc/sfx2/objface.hxx @@ -80,9 +80,9 @@ public: const SfxSlot* GetSlot( const String& rCommand ) const; const char* GetClassName() const { return pName; } - int HasName() const { return 0 != aNameResId.GetId(); } + bool HasName() const { return 0 != aNameResId.GetId(); } rtl::OUString GetName() const - { return String(aNameResId); } + { return HasName() ? ResId::toString(aNameResId) : rtl::OUString(); } ResMgr* GetResMgr() const { return aNameResId.GetResMgr(); } -- cgit