-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid "this == null". some compiler optimization removes this compari…
…son. bump revision
- Loading branch information
ryo
committed
Nov 22, 2018
1 parent
f66b842
commit 8b1fb2b
Showing
8 changed files
with
107 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
$NetBSD: patch-src_yimage.cc,v 1.1 2018/11/22 04:56:03 ryo Exp $ | ||
|
||
* "this" must not be null. comparison with null will be removed by compiler optimization. | ||
|
||
--- src/yimage.cc.orig 2009-11-08 18:59:46.000000000 +0000 | ||
+++ src/yimage.cc | ||
@@ -244,7 +244,7 @@ YPixmap::~YPixmap() { | ||
} | ||
|
||
void YPixmap::replicate(bool horiz, bool copyMask) { | ||
- if (this == NULL || pixmap() == None || (fMask == None && copyMask)) | ||
+ if (pixmap() == None || (fMask == None && copyMask)) | ||
return; | ||
|
||
int dim(horiz ? width() : height()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
$NetBSD: distinfo,v 1.2 2015/11/02 23:42:52 agc Exp $ | ||
$NetBSD: distinfo,v 1.3 2018/11/22 04:56:03 ryo Exp $ | ||
|
||
SHA1 (icewm-1.3.8.tar.gz) = dc9155227129be14aced00c24c572356e0fa5cd8 | ||
RMD160 (icewm-1.3.8.tar.gz) = cacf40e529a10ab8eb33961236432efd080e81b6 | ||
SHA512 (icewm-1.3.8.tar.gz) = ce9bf3e736a2f3fad4bbf731647b4e4ad0168cd2c4af66b1c43beef9ceeee39d14909714d2fc73ab13f6c285a74dfe31fffc9677ae8bd2d1077716cd6d6afb72 | ||
Size (icewm-1.3.8.tar.gz) = 905680 bytes | ||
SHA1 (patch-Makefile.in) = c283daa93d33270cc9a648e083fc75c8a695d59d | ||
SHA1 (patch-src_wmapp.cc) = a2a7cf6d5b1f12e2e6a832b7cd1e320a7be4f055 | ||
SHA1 (patch-src_wmtaskbar.cc) = 5e536a60b9d0a604369f6cc3010e7f577f103d5d | ||
SHA1 (patch-src_yimage.cc) = 5d825354579d05844986192dc55b5a27eac4483c | ||
SHA1 (patch-src_ylocale.cc) = 193d3c8b59175855054d3e825b2da4ea0c968123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
$NetBSD: patch-src_wmapp.cc,v 1.1 2018/11/22 04:56:03 ryo Exp $ | ||
|
||
--- src/wmapp.cc.orig 2013-11-17 16:54:39.000000000 +0000 | ||
+++ src/wmapp.cc | ||
@@ -621,14 +621,21 @@ static void initPixmaps() { | ||
|
||
for (int a = 0; a <= 1; a++) { | ||
for (int b = 0; b <= 1; b++) { | ||
- frameT[a][b]->replicate(true, copyMask); | ||
- frameB[a][b]->replicate(true, copyMask); | ||
- frameL[a][b]->replicate(false, copyMask); | ||
- frameR[a][b]->replicate(false, copyMask); | ||
+ if (frameT[a][b] != null) | ||
+ frameT[a][b]->replicate(true, copyMask); | ||
+ if (frameB[a][b] != null) | ||
+ frameB[a][b]->replicate(true, copyMask); | ||
+ if (frameL[a][b] != null) | ||
+ frameL[a][b]->replicate(false, copyMask); | ||
+ if (frameR[a][b] != null) | ||
+ frameR[a][b]->replicate(false, copyMask); | ||
} | ||
- titleS[a]->replicate(true, copyMask); | ||
- titleT[a]->replicate(true, copyMask); | ||
- titleB[a]->replicate(true, copyMask); | ||
+ if (titleS[a] != null) | ||
+ titleS[a]->replicate(true, copyMask); | ||
+ if (titleT[a] != null) | ||
+ titleT[a]->replicate(true, copyMask); | ||
+ if (titleB[a] != null) | ||
+ titleB[a]->replicate(true, copyMask); | ||
} | ||
|
||
menuButton[0] = paths->loadPixmap(0, "menuButtonI.xpm"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
$NetBSD: patch-src_yimage.cc,v 1.1 2018/11/22 04:56:03 ryo Exp $ | ||
|
||
--- src/yimage.cc.orig 2013-11-17 16:54:39.000000000 +0000 | ||
+++ src/yimage.cc | ||
@@ -246,7 +246,7 @@ YPixmap::~YPixmap() { | ||
} | ||
|
||
void YPixmap::replicate(bool horiz, bool copyMask) { | ||
- if (this == NULL || pixmap() == None || (fMask == None && copyMask)) | ||
+ if (pixmap() == None || (fMask == None && copyMask)) | ||
return; | ||
|
||
int dim(horiz ? width() : height()); |