summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-11 11:36:44 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-11 17:40:27 +0100
commite4f9d06214ada36b4810c736e81ac3c1ce01b6a0 (patch)
treecdd7065a23a0fdd1922f4a64e374e2a2a786dc77 /forms
parent28270d93c029091805c3c169294b6ce6ae2067f0 (diff)
Use = for initialization
...so that an automatic loplugin:cstylecast rewrite (with a to-be-committed enhanced loplugin) won't rewrite that to -Werror,-Wvexing-parse sal_Int16 nDefaultState( sal_Int16(TRISTATE_FALSE) ); Change-Id: Ic02374a34c67284dfbbb829a76fe7af9f7599411 Reviewed-on: https://gerrit.libreoffice.org/47752 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/Button.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/component/Button.cxx b/forms/source/component/Button.cxx
index 3b2ed0b99972..ca452d5e96a9 100644
--- a/forms/source/component/Button.cxx
+++ b/forms/source/component/Button.cxx
@@ -265,7 +265,7 @@ void SAL_CALL OButtonModel::setFastPropertyValue_NoBroadcast( sal_Int32 _nHandle
{
case PROPERTY_ID_DEFAULT_STATE:
{
- sal_Int16 nDefaultState( (sal_Int16)TRISTATE_FALSE );
+ sal_Int16 nDefaultState = (sal_Int16)TRISTATE_FALSE;
OSL_VERIFY( _rValue >>= nDefaultState );
m_eDefaultState = (ToggleState)nDefaultState;
impl_resetNoBroadcast_nothrow();