summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-06-08 09:52:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-06-08 11:59:05 +0200
commit6414389f8d95e76dcdf2bd9a7c2fa6dc9acd304d (patch)
treeb68418ecba547de953b072bf590e74d34475d2ee
parentc1f9292b96edcb184a57147a4e47a7e10aacf1e8 (diff)
nPoolId already points to STR_POOLCOLL_TOX_AUTHORITIES1 at this point
#define STR_POOLCOLL_TOX_AUTHORITIESH (RC_POOLCOLL_REGISTER_BEGIN+ 29) #define STR_POOLCOLL_TOX_AUTHORITIES1 (RC_POOLCOLL_REGISTER_BEGIN+ 30) in the context of switch( m_eType ) ... case TOX_AUTHORITIES : nPoolId = STR_POOLCOLL_TOX_AUTHORITIESH; break; SetTemplate( 0, SwResId( nPoolId++ )); already results in a nPoolId of STR_POOLCOLL_TOX_AUTHORITIES1 when we enter this loop, so don't need to special case TOX_AUTHORITIES Change-Id: Ic41596a85c48d080cd38003663b729583f08ff98 Reviewed-on: https://gerrit.libreoffice.org/38561 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/core/tox/tox.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx
index b6baa1366d96..4c584eea495a 100644
--- a/sw/source/core/tox/tox.cxx
+++ b/sw/source/core/tox/tox.cxx
@@ -311,8 +311,6 @@ SwForm::SwForm( TOXTypes eTyp ) // #i21237#
nPoolId = STR_POOLCOLL_TOX_CNTNT6;
else if( TOX_USER == m_eType && 6 == i )
nPoolId = STR_POOLCOLL_TOX_USER6;
- else if( TOX_AUTHORITIES == m_eType )
- nPoolId = STR_POOLCOLL_TOX_AUTHORITIES1;
SetTemplate( i, SwResId( nPoolId ) );
}
}