diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-29 13:37:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-01 08:30:27 +0200 |
commit | 595f46344e18fd6275ff7b862269e4c131449591 (patch) | |
tree | 0de2d2e300399b9aa9c0fea2dd6ca2155f8a231a /svx/source/xoutdev/xattr.cxx | |
parent | tdf#97960 - .doc: preserve font size in empty cells (diff) | |
download | core-595f46344e18fd6275ff7b862269e4c131449591.tar.gz core-595f46344e18fd6275ff7b862269e4c131449591.zip |
loplugin:unuseddefaultparam in svx (part1)
Change-Id: I0fc8d00447491e8474508952c21d07aa22b6f055
Diffstat (limited to 'svx/source/xoutdev/xattr.cxx')
-rw-r--r-- | svx/source/xoutdev/xattr.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx index 3e80ccec62dc..73e2c41b4d25 100644 --- a/svx/source/xoutdev/xattr.cxx +++ b/svx/source/xoutdev/xattr.cxx @@ -330,12 +330,10 @@ SvStream& XColorItem::Store( SvStream& rOut, sal_uInt16 nItemVersion ) const return rOut; } -const Color& XColorItem::GetColorValue(const XColorList* pTable) const +const Color& XColorItem::GetColorValue() const { - if (!IsIndex()) - return aColor; - else - return pTable->GetColor(GetIndex())->GetColor(); + assert(!IsIndex()); + return aColor; } |