From: Vadim Zeitlin Date: Mon, 8 Aug 2005 22:15:30 +0000 (+0000) Subject: add missing braces to quiet gcc warnings about missing braces around initializer X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d2a8de2f81d3a3eca0f5c0ea1a04e2a9dd684642 add missing braces to quiet gcc warnings about missing braces around initializer git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/textctrl.cpp b/src/mac/carbon/textctrl.cpp index 14e76f18f7..58e7befd83 100644 --- a/src/mac/carbon/textctrl.cpp +++ b/src/mac/carbon/textctrl.cpp @@ -2767,7 +2767,8 @@ wxMacMLTEHIViewControl::wxMacMLTEHIViewControl( wxTextCtrl *wxPeer, wxString st = str ; wxMacConvertNewlines10To13( &st ) ; - HIRect hr = { bounds.left , bounds.top , bounds.right - bounds.left , bounds.bottom- bounds.top } ; + HIRect hr = { { bounds.left , bounds.top} , + { bounds.right - bounds.left , bounds.bottom - bounds.top} } ; m_scrollView = NULL ; TXNFrameOptions frameOptions = FrameOptionsFromWXStyle( style ) ;