summaryrefslogtreecommitdiffstats
path: root/sfx2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-04-03 23:12:24 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-04-03 23:27:40 +0200
commit5a7dbd4d8bcc4ac86ef6e6ca4534b279e81a4355 (patch)
tree70e4b18ce779b500cee8bccc1737c10477e17472 /sfx2
parentscreen space is a valuable good, don't waste it (diff)
downloadcore-5a7dbd4d8bcc4ac86ef6e6ca4534b279e81a4355.tar.gz
core-5a7dbd4d8bcc4ac86ef6e6ca4534b279e81a4355.zip
maybe a bit over-engineered
Change-Id: Ia7a491241ad78cafc542e63b3796b7c32fa5300c
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/sfxhelp.cxx13
1 files changed, 2 insertions, 11 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx
index a2a7445aac4b..87d62cfc012e 100644
--- a/sfx2/source/appl/sfxhelp.cxx
+++ b/sfx2/source/appl/sfxhelp.cxx
@@ -216,18 +216,9 @@ public:
static Sequence< OUString > GetPropertyNames()
{
- static const char* aPropNames[] =
- {
- "HelpAgentStarterList",
- };
-
- const int nCount = sizeof( aPropNames ) / sizeof( const char* );
- Sequence< OUString > aNames( nCount );
+ Sequence< OUString > aNames( 1 );
OUString* pNames = aNames.getArray();
- OUString* pEnd = pNames + aNames.getLength();
- int i = 0;
- for ( ; pNames != pEnd; ++pNames )
- *pNames = OUString::createFromAscii( aPropNames[i++] );
+ pNames[0] = OUString( "HelpAgentStarterList" );
return aNames;
}