diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-19 10:26:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-08-19 13:00:44 +0100 |
commit | 87e520e7b26c3eaf07ed10dcd0cb0f7f5cebd14d (patch) | |
tree | 25548c4e07e79aac8a52e526ae240636e928e1b4 /svx | |
parent | b794ed87f46dba5af9567c235358efd66ecee5af (diff) |
Related: coverity#1371331 rework code a little
Change-Id: I4ea8f7b4fdd891f552d23e86eb376bd33ac33411
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sidebar/nbdtmg.cxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx index 11b957d2835f..1949094f6976 100644 --- a/svx/source/sidebar/nbdtmg.cxx +++ b/svx/source/sidebar/nbdtmg.cxx @@ -253,13 +253,15 @@ BulletsTypeMgr::BulletsTypeMgr() BulletsTypeMgr::BulletsTypeMgr(const BulletsTypeMgr& aTypeMgr): NBOTypeMgrBase(aTypeMgr) { - for (sal_uInt16 i=0;i<DEFAULT_BULLET_TYPES;i++) + for (sal_uInt16 i=0; i < DEFAULT_BULLET_TYPES; ++i) { - pActualBullets[i]->bIsCustomized = aTypeMgr.pActualBullets[i]->bIsCustomized; - pActualBullets[i]->cBulletChar = aTypeMgr.pActualBullets[i]->cBulletChar; - pActualBullets[i]->aFont = aTypeMgr.pActualBullets[i]->aFont; - pActualBullets[i]->sDescription = aTypeMgr. pActualBullets[i]->sDescription; - pActualBullets[i]->eType = aTypeMgr. pActualBullets[i]->eType; + const BulletsSettings_Impl* pSrcBullet = aTypeMgr.pActualBullets[i]; + BulletsSettings_Impl* pTargetBullet = pActualBullets[i]; + pTargetBullet->bIsCustomized = pSrcBullet->bIsCustomized; + pTargetBullet->cBulletChar = pSrcBullet->cBulletChar; + pTargetBullet->aFont = pSrcBullet->aFont; + pTargetBullet->sDescription = pSrcBullet->sDescription; + pTargetBullet->eType = pSrcBullet->eType; } } |