summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/ext/ucpext_content.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-27 14:06:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-28 08:55:10 +0200
commit26c82e22bf4f077022ae88d0a7f8ad0fa6d2a5ba (patch)
tree42bf27db4a1da0fa3ea3bdd7997e7058c1638f98 /ucb/source/ucp/ext/ucpext_content.cxx
parentef531e85d95fe18d553bce1a6926d24c08ffe2bf (diff)
loplugin:oncevar in ucb..vbahelper
Change-Id: I1fc7c7505a42b3bf9d4a5ab22961930b9831d4ae Reviewed-on: https://gerrit.libreoffice.org/39327 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/ucp/ext/ucpext_content.cxx')
-rw-r--r--ucb/source/ucp/ext/ucpext_content.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/ucb/source/ucp/ext/ucpext_content.cxx b/ucb/source/ucp/ext/ucpext_content.cxx
index 1dd52774ab9f..378c402db518 100644
--- a/ucb/source/ucp/ext/ucpext_content.cxx
+++ b/ucb/source/ucp/ext/ucpext_content.cxx
@@ -528,10 +528,8 @@ namespace ucb { namespace ucp { namespace ext
Sequence< CommandInfo > Content::getCommands( const Reference< XCommandEnvironment > & /*xEnv*/ )
{
- sal_uInt32 nCommandCount = 5;
static const CommandInfo aCommandInfoTable[] =
{
-
// Mandatory commands
CommandInfo(
@@ -564,7 +562,7 @@ namespace ucb { namespace ucp { namespace ext
)
};
- return Sequence< CommandInfo >( aCommandInfoTable, nCommandCount );
+ return Sequence< CommandInfo >( aCommandInfoTable, SAL_N_ELEMENTS(aCommandInfoTable) );
}