summaryrefslogtreecommitdiffstats
path: root/svx/source/xoutdev/xattr.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-29 13:37:14 +0200
committerNoel Grandin <noel@peralex.com>2016-03-01 08:30:27 +0200
commit595f46344e18fd6275ff7b862269e4c131449591 (patch)
tree0de2d2e300399b9aa9c0fea2dd6ca2155f8a231a /svx/source/xoutdev/xattr.cxx
parenttdf#97960 - .doc: preserve font size in empty cells (diff)
downloadcore-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.cxx8
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;
}