summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-06-23 17:25:11 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2013-06-23 17:39:22 +0200
commit2a2b900544cac3b2f2c915b76872bf3c1c050f84 (patch)
treeff247369c7bfa28471290f749c774b932884a3c1 /forms
parent87c50e75633f31b54bfa1758cc0921ac53c6b418 (diff)
avoid initialise-then-reset
Directly construct as unitialised Change-Id: I66aa4f5a5f5ed2c1d5bf0cb8083e1968ef776bf7
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/ListBox.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index f99d4fe3db82..51f751604fd3 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -709,8 +709,7 @@ namespace frm
return;
}
- ::boost::optional< sal_Int16 > aBoundColumn(0);
- aBoundColumn.reset();
+ ::boost::optional< sal_Int16 > aBoundColumn(boost::none);
if ( m_aBoundColumn.getValueType().getTypeClass() == TypeClass_SHORT )
{
sal_Int16 nBoundColumn( 0 );