[Libreoffice-commits] core.git: forms/source

Stephan Bergmann sbergman at redhat.com
Thu Jan 11 16:41:04 UTC 2018


 forms/source/component/Button.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e4f9d06214ada36b4810c736e81ac3c1ce01b6a0
Author: Stephan Bergmann <sbergman at 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 <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at 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();


More information about the Libreoffice-commits mailing list