[poe-commits] SF.net SVN: poe: [2007] trunk/poe/lib/POE/Wheel/ReadWrite.pm
Brought to you by:
rcaputo
From: <bs...@us...> - 2006-06-30 18:23:47
|
Revision: 2007 Author: bsmith Date: 2006-06-30 11:23:34 -0700 (Fri, 30 Jun 2006) ViewCVS: http://svn.sourceforge.net/poe/?rev=2007&view=rev Log Message: ----------- Change defaulting of filters in POE::Wheel::ReadWrite constructor: if either isn't provided, fill it in with POE::Filter::Line previously, it only filled in the default if both weren't provided. Modified Paths: -------------- trunk/poe/lib/POE/Wheel/ReadWrite.pm Modified: trunk/poe/lib/POE/Wheel/ReadWrite.pm =================================================================== --- trunk/poe/lib/POE/Wheel/ReadWrite.pm 2006-06-30 11:24:01 UTC (rev 2006) +++ trunk/poe/lib/POE/Wheel/ReadWrite.pm 2006-06-30 18:23:34 UTC (rev 2007) @@ -73,8 +73,10 @@ # If neither Filter, InputFilter or OutputFilter is defined, then # they default to POE::Filter::Line. - unless (defined $in_filter or defined $out_filter) { - $in_filter = $out_filter = POE::Filter::Line->new(); + unless (defined $in_filter and defined $out_filter) { + my $new_filter = POE::Filter::Line->new(); + $in_filter = $new_filter unless defined $in_filter; + $out_filter = $new_filter unless defined $out_filter; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |