forms/source/component/Button.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit e4f9d06214ada36b4810c736e81ac3c1ce01b6a0 Author: Stephan Bergmann <sberg...@redhat.com> Date: Thu Jan 11 11:36:44 2018 +0100 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 <c...@libreoffice.org> Reviewed-by: Stephan Bergmann <sberg...@redhat.com> 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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits