diff options
-rw-r--r-- | dbaccess/source/ui/dlg/advancedsettings.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/advancedsettings.cxx b/dbaccess/source/ui/dlg/advancedsettings.cxx index 0636ff0080c5..e2dc5c889c9d 100644 --- a/dbaccess/source/ui/dlg/advancedsettings.cxx +++ b/dbaccess/source/ui/dlg/advancedsettings.cxx @@ -300,7 +300,8 @@ namespace dbaui if ( !*setting->ppControl ) continue; - ::boost::optional< bool > aValue; + ::boost::optional< bool > aValue(false); + aValue.reset(); SFX_ITEMSET_GET( _rSet, pItem, SfxPoolItem, setting->nItemId, sal_True ); if ( pItem->ISA( SfxBoolItem ) ) @@ -320,7 +321,7 @@ namespace dbaui } else { - sal_Bool bValue = *aValue; + bool bValue = *aValue; if ( setting->bInvertedDisplay ) bValue = !bValue; (*setting->ppControl)->Check( bValue ); |