Kaydet (Commit) 04eec320 authored tarafından Mike Kaganski's avatar Mike Kaganski

Initializing boost::optional with a value then resetting is odd

Change-Id: Iebf28bebb009a46872dd6d4662a7434e3c66b7dc
Reviewed-on: https://gerrit.libreoffice.org/68993
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 57ca3b3b
......@@ -178,8 +178,7 @@ namespace dbaui
if (!booleanSetting.xControl)
continue;
::boost::optional< bool > aValue(false);
aValue.reset();
boost::optional<bool> aValue;
const SfxPoolItem* pItem = _rSet.GetItem<SfxPoolItem>(booleanSetting.nItemId);
if (const SfxBoolItem *pBoolItem = dynamic_cast<const SfxBoolItem*>( pItem) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment