[Pkg] The Trunk: Network-nice.151.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Jul 20 20:52:24 UTC 2014


Nicolas Cellier uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-nice.151.mcz

==================== Summary ====================

Name: Network-nice.151
Author: nice
Time: 20 July 2014, 10:51:50.613 pm
UUID: 7444a333-6594-4561-9c40-15616ec28230
Ancestors: Network-nice.150

Don't use RWBinaryOrTextStream where a simple WriteStream would perfectly do the job.

=============== Diff against Network-nice.150 ===============

Item was changed:
  ----- Method: PRServerDirectory>>getProjectThumbnail: (in category 'private') -----
  getProjectThumbnail: aProject 
  	"private - answer a stream with the aProject's thumbnail or nil if none"
  	| form stream |
  	form := aProject thumbnail.
  	form isNil
  		ifTrue: [^ nil].
  	""
  	form unhibernate.
  	form := form colorReduced.
  	""
  	self flag: #todo.
  	"use a better image format than GIF"
+ 	stream := ByteArray new writeStream.
- 	stream := RWBinaryOrTextStream on: String new.
  	GIFReadWriter putForm: form onStream: stream.
- 	stream reset.
  	""
  	^ stream contents asString!



More information about the Packages mailing list