summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-13 10:27:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-29 08:18:35 +0200
commit71112060e0930fc58087c3762e836b1e12b60f75 (patch)
tree3bd54aa5b5864d9cd31d0aa3ec4080b46cf66a2d /xmlscript
parentd6da9e495d7ca32de6cda1a94cb4c8cd26b240cc (diff)
loplugin:oncevar various
Change-Id: I8b82d46d4688b1a59d6fe1b05da7d5c8dfc13ca6 Reviewed-on: https://gerrit.libreoffice.org/38766 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
index c7045c391210..34605f5010df 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
@@ -1596,8 +1596,7 @@ void ButtonElement::endElement()
sal_Bool bChecked = false;
if (getBoolAttr( &bChecked, "checked", _xAttributes, m_xImport->XMLNS_DIALOGS_UID ) && bChecked)
{
- sal_Int16 nVal = 1;
- ctx.getControlModel()->setPropertyValue( "State" , makeAny( nVal ) );
+ ctx.getControlModel()->setPropertyValue( "State" , makeAny( sal_Int16(1) ) );
}
ctx.importEvents( _events );