summaryrefslogtreecommitdiff
path: root/sd/source/ui/table
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-08-25 10:03:21 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-08-25 13:40:37 +0200
commit7d7b2747751c442b7c75680d9960de70037e38d8 (patch)
treea3e491c8043a92f2bcaa68315a7a98dfc04f3b20 /sd/source/ui/table
parentc46f00166027fa3eefc75f9cb13bf4afc887bf1d (diff)
Use std::optional instead of out arguments
Change-Id: I6dde7d602695d44488f7debf65d8ef278fa8704c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156087 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sd/source/ui/table')
-rw-r--r--sd/source/ui/table/TableDesignPane.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx
index 5d4d50e3d68a..7c5154a0e1db 100644
--- a/sd/source/ui/table/TableDesignPane.cxx
+++ b/sd/source/ui/table/TableDesignPane.cxx
@@ -757,8 +757,7 @@ CellInfo::CellInfo( const Reference< XStyle >& xStyle )
SfxItemSet& rSet = pStyleSheet->GetItemSet();
// get style fill color
- if( !GetDraftFillColor(rSet, maCellColor) )
- maCellColor = COL_TRANSPARENT;
+ maCellColor = GetDraftFillColor(rSet).value_or(COL_TRANSPARENT);
// get style text color
const SvxColorItem* pTextColor = rSet.GetItem(EE_CHAR_COLOR);