]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/gen_iface.py
Avoid crashes when creating initially hidden MDI child under Unity.
[wxWidgets.git] / src / stc / gen_iface.py
index f6f329fb307a4e6e7cbddcacc3bc859d6188c1db..805514e134984fbda7ec9328bb4def85addc1307 100755 (executable)
@@ -756,7 +756,7 @@ methodOverrideMap = {
 
      '''wxString %s() const {
          int msg = %s;
-         int len = SendMsg(msg, 0, NULL);
+         int len = SendMsg(msg, 0, (sptr_t)NULL);
          if (!len) return wxEmptyString;
 
          wxMemoryBuffer mbuf(len+1);
@@ -774,7 +774,7 @@ methodOverrideMap = {
 
      '''wxString %s(int tagNumber) const {
          int msg = %s;
-         int len = SendMsg(msg, tagNumber, NULL);
+         int len = SendMsg(msg, tagNumber, (sptr_t)NULL);
          if (!len) return wxEmptyString;
 
          wxMemoryBuffer mbuf(len+1);
@@ -791,7 +791,7 @@ methodOverrideMap = {
 
      '''wxString %s() const {
          int msg = %s;
-         int len = SendMsg(msg, 0, NULL);
+         int len = SendMsg(msg, 0, (sptr_t)NULL);
          if (!len) return wxEmptyString;
 
          wxMemoryBuffer mbuf(len+1);
@@ -809,7 +809,7 @@ methodOverrideMap = {
 
      '''wxString %s() const {
          int msg = %s;
-         int len = SendMsg(msg, 0, NULL);
+         int len = SendMsg(msg, 0, (sptr_t)NULL);
          if (!len) return wxEmptyString;
 
          wxMemoryBuffer mbuf(len+1);
@@ -827,7 +827,7 @@ methodOverrideMap = {
 
      '''wxString %s() const {
          int msg = %s;
-         int len = SendMsg(msg, 0, NULL);
+         int len = SendMsg(msg, 0, (sptr_t)NULL);
          if (!len) return wxEmptyString;
 
          wxMemoryBuffer mbuf(len+1);
@@ -846,7 +846,7 @@ methodOverrideMap = {
 
      '''wxString %s(const wxString& name) const {
          int msg = %s;
-         int len = SendMsg(msg, (sptr_t)(const char*)wx2stc(name), NULL);
+         int len = SendMsg(msg, (sptr_t)(const char*)wx2stc(name), (sptr_t)NULL);
          if (!len) return wxEmptyString;
 
          wxMemoryBuffer mbuf(len+1);
@@ -865,7 +865,7 @@ methodOverrideMap = {
 
      '''wxString %s() const {
          int msg = %s;
-         int len = SendMsg(msg, 0, NULL);
+         int len = SendMsg(msg, 0, (sptr_t)NULL);
          if (!len) return wxEmptyString;
 
          wxMemoryBuffer mbuf(len+1);