summaryrefslogtreecommitdiff
path: root/sc/source/ui/app/msgpool.cxx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-10-05 15:26:43 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-10-15 02:57:40 +0000
commit810e664de088721b6452016d83fb3ef3e6ca5eb1 (patch)
treea3f69d5acea6065c085d88c52e61c5642a2d08e0 /sc/source/ui/app/msgpool.cxx
parent99e3cf1ce98357ae068b52d726be1b76df5278fe (diff)
use initializer list ...
... for default pool item arrays and item infos Change-Id: I79db1b4e4a78471d81409dd976a912eeccf1065b Reviewed-on: https://gerrit.libreoffice.org/29540 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/ui/app/msgpool.cxx')
-rw-r--r--sc/source/ui/app/msgpool.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/sc/source/ui/app/msgpool.cxx b/sc/source/ui/app/msgpool.cxx
index b981f01d7570..37d5d9c9e039 100644
--- a/sc/source/ui/app/msgpool.cxx
+++ b/sc/source/ui/app/msgpool.cxx
@@ -55,10 +55,11 @@ ScMessagePool::ScMessagePool()
aGlobalUserListItem ( ScUserListItem ( SCITEM_USERLIST ) ),
aPrintWarnItem ( SfxBoolItem ( SCITEM_PRINTWARN, false ) ),
- aCondFormatDlgItem ( ScCondFormatDlgItem ( nullptr, -1, false ) )
-{
- ppPoolDefaults = new SfxPoolItem*[MSGPOOL_END - MSGPOOL_START + 1];
+ aCondFormatDlgItem ( ScCondFormatDlgItem ( nullptr, -1, false ) ),
+ ppPoolDefaults(new SfxPoolItem*[MSGPOOL_END - MSGPOOL_START + 1]),
+ pDocPool(new ScDocumentPool)
+{
ppPoolDefaults[SCITEM_STRING - MSGPOOL_START] = &aGlobalStringItem;
ppPoolDefaults[SCITEM_SEARCHDATA - MSGPOOL_START] = &aGlobalSearchItem;
ppPoolDefaults[SCITEM_SORTDATA - MSGPOOL_START] = &aGlobalSortItem;
@@ -73,8 +74,6 @@ ScMessagePool::ScMessagePool()
SetDefaults( ppPoolDefaults );
- pDocPool = new ScDocumentPool;
-
SetSecondaryPool( pDocPool );
}