freebsd-ports/x11-wm/icewm/files/patch-src__yarray.h
Bryan Drewery 64bea0f23f - Fix build with clang [1]
- Pet portlint by removing excess whitespace

PR:		ports/175467 [1]
Reported by:	Pavel Timofeev <timp87@gmail.com> [1]
Approved by:	eadler (maintainer, implicit)
Obtained from:	Upstream CVS [1]
2013-01-25 04:44:27 +00:00

16 lines
579 B
C

Fix build with clang
http://icewm.cvs.sourceforge.net/viewvc/icewm/icewm-1.2/src/yarray.h?r1=1.5.4.3&r2=1.5.4.4&pathrev=icewm-1-3-BRANCH
--- src/yarray.h 2009/06/01 17:10:07 1.5.4.3
+++ src/yarray.h 2010/12/25 15:29:53 1.5.4.4
@@ -152,7 +152,8 @@
}
virtual void remove(const typename YArray<DataType *>::SizeType index) {
- if (index < YArray<DataType *>::getCount()) delete getItem(index);
+ if (index < YArray<DataType *>::getCount())
+ delete YArray<DataType *>::getItem(index);
YArray<DataType *>::remove(index);
}