FreeBSD Bugzilla – Attachment 175592 Details for
Bug 197888
devel/codeblocks: Crashes on startup with coredump when compiled with Clang (-O2)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Remove null references in wxPGProperty
devel__codeblocks-fix-null-references-1.diff (text/plain), 2.92 KB, created by
Dimitry Andric
on 2016-10-09 23:55:32 UTC
(
hide
)
Description:
Remove null references in wxPGProperty
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2016-10-09 23:55:32 UTC
Size:
2.92 KB
patch
obsolete
>Index: devel/codeblocks/files/patch-src_sdk_wxpropgrid_include_wx_propgrid_propgrid.h >=================================================================== >--- devel/codeblocks/files/patch-src_sdk_wxpropgrid_include_wx_propgrid_propgrid.h (nonexistent) >+++ devel/codeblocks/files/patch-src_sdk_wxpropgrid_include_wx_propgrid_propgrid.h (working copy) >@@ -0,0 +1,11 @@ >+--- src/sdk/wxpropgrid/include/wx/propgrid/propgrid.h.orig 2016-01-23 16:43:00 UTC >++++ src/sdk/wxpropgrid/include/wx/propgrid/propgrid.h >+@@ -700,7 +700,7 @@ protected: >+ #define wxPG_EMPTY_ARRAYSTRING wxArrayString() >+ >+ #if !defined(SWIG) >+- #define wxPG_LABEL (*((wxString*)NULL)) // Used to tell wxPGProperty to use label as name as well. >++ extern WXDLLIMPEXP_PG const wxString wxPG_LABEL; // Used to tell wxPGProperty to use label as name as well. >+ #define wxPG_NULL_BITMAP wxNullBitmap >+ #define wxPG_COLOUR_BLACK (*wxBLACK) >+ #else > >Property changes on: devel/codeblocks/files/patch-src_sdk_wxpropgrid_include_wx_propgrid_propgrid.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: devel/codeblocks/files/patch-src_sdk_wxpropgrid_src_propgrid.cpp >=================================================================== >--- devel/codeblocks/files/patch-src_sdk_wxpropgrid_src_propgrid.cpp (nonexistent) >+++ devel/codeblocks/files/patch-src_sdk_wxpropgrid_src_propgrid.cpp (working copy) >@@ -0,0 +1,28 @@ >+--- src/sdk/wxpropgrid/src/propgrid.cpp.orig 2016-01-23 16:43:00 UTC >++++ src/sdk/wxpropgrid/src/propgrid.cpp >+@@ -333,6 +333,8 @@ const wxChar *wxPGTypeName_PyObject = wx >+ >+ static const wxChar* gs_noCellText = wxT("@!"); >+ >++const wxString wxPG_LABEL; >++ >+ // ----------------------------------------------------------------------- >+ >+ static void wxPGDrawFocusRect( wxDC& dc, const wxRect& rect ) >+@@ -679,13 +681,13 @@ void wxPGProperty::Init() >+ >+ void wxPGProperty::Init( const wxString& label, const wxString& name ) >+ { >+- if ( &label != ((wxString*)NULL) ) >++ if ( label != wxPG_LABEL ) >+ m_label = label; >+ >+ #ifndef __WXPYTHON__ >+- if ( &name != ((wxString*)NULL) ) >++ if ( name != wxPG_LABEL ) >+ #else >+- if ( (&name != ((wxString*)NULL)) && name != wxT("_LABEL_AS_NAME") ) >++ if ( name != wxPG_LABEL && name != wxT("_LABEL_AS_NAME") ) >+ #endif >+ DoSetName( name ); >+ else > >Property changes on: devel/codeblocks/files/patch-src_sdk_wxpropgrid_src_propgrid.cpp >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
koobs
:
maintainer-approval?
(
lbartoletti
)
Actions:
View
|
Diff
Attachments on
bug 197888
:
174486
| 175592 |
175598