From e4f9d06214ada36b4810c736e81ac3c1ce01b6a0 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 11 Jan 2018 11:36:44 +0100 Subject: 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 Reviewed-by: Stephan Bergmann --- forms/source/component/Button.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'forms/source/component/Button.cxx') 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(); -- cgit