diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-28 10:11:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-28 11:16:49 +0000 |
commit | 5d0051ac3733db9f04dd459db46212f70a9c07e9 (patch) | |
tree | ddda9526b3f0afd5a85be1b257512972b6df4494 /sfx2 | |
parent | solenv: link misc. built-in extensions (diff) | |
download | core-5d0051ac3733db9f04dd459db46212f70a9c07e9.tar.gz core-5d0051ac3733db9f04dd459db46212f70a9c07e9.zip |
SfxInterfaces may legally have no translatable ui name
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sfx2/objface.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
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(); } |