summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-05-24 15:10:32 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-05-24 15:46:42 +0200
commitf9b5115200123214a6922eb082f838ffe4d900be (patch)
treeb568106f2aa092aaf799feac41384d4b500a849c /cui
parent3930127dfbf2a11830b5d35c1d88a7ecfe9f56d2 (diff)
cppcheck: redundantAssignment
Change-Id: I1601d5b5dd2ba4ab2c3a0c9d70f337e98e4fe5c3
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/numfmt.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx
index 76a7743f29e7..ddc08da2482e 100644
--- a/cui/source/tabpages/numfmt.cxx
+++ b/cui/source/tabpages/numfmt.cxx
@@ -1173,13 +1173,11 @@ IMPL_LINK( SvxNumberFormatTabPage, SelFormatHdl_Impl, void *, pLb )
if (pLb == m_pLbFormat)
{
sal_uLong nSelPos = m_pLbFormat->GetSelectEntryPos();
- OUString aFormat = m_pLbFormat->GetSelectEntry();
- OUString aComment;
-
short nFmtLbSelPos = static_cast<short>(nSelPos);
- aFormat=pNumFmtShell->GetFormat4Entry(nFmtLbSelPos);
- aComment=pNumFmtShell->GetComment4Entry(nFmtLbSelPos);
+ OUString aFormat = pNumFmtShell->GetFormat4Entry(nFmtLbSelPos);
+ OUString aComment = pNumFmtShell->GetComment4Entry(nFmtLbSelPos);
+
if(pNumFmtShell->GetUserDefined4Entry(nFmtLbSelPos))
{
if(aComment.isEmpty())