summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 12:42:02 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 22:14:23 +0100
commit312c55beaabf33f6d44e07b0d1c24ef84d1e8d36 (patch)
treee52fd2935e556b4059ac9ade82051ed5a5c917c9 /sw
parent2effcd451dd6bb667e0b941775094a3b5263bbbd (diff)
simplify
Change-Id: Iee71379160f6478a940f63b6f5be48a3a6bdcfde
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unotbl.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 3b0a8afd61be..9fb2e0f9322f 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -175,8 +175,7 @@ static void lcl_SetSpecialProperty(SwFrmFmt* pFmt,
UnoActionContext aAction(pFmt->GetDoc());
if( pEntry->nWID == FN_TABLE_HEADLINE_REPEAT)
{
- bool bVal = *static_cast<sal_Bool const *>(aValue.getValue());
- pFmt->GetDoc()->SetRowsToRepeat( *pTable, bVal ? 1 : 0 );
+ pFmt->GetDoc()->SetRowsToRepeat( *pTable, aValue.get<bool>() ? 1 : 0 );
}
else
{