logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ni...@apache.org
Subject cvs commit: logging-log4net/src/Layout/Pattern LiteralPatternConverter.cs
Date Sun, 19 Dec 2004 19:23:31 GMT
nicko       2004/12/19 11:23:31

  Modified:    src/Layout/Pattern LiteralPatternConverter.cs
  Log:
  Updates suggested by FxCop.
  Minor naming changes to internal types.
  Perf improvements to type check + type cast code.
  
  Revision  Changes    Path
  1.5       +3 -2      logging-log4net/src/Layout/Pattern/LiteralPatternConverter.cs
  
  Index: LiteralPatternConverter.cs
  ===================================================================
  RCS file: /home/cvs/logging-log4net/src/Layout/Pattern/LiteralPatternConverter.cs,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- LiteralPatternConverter.cs	6 Dec 2004 02:22:44 -0000	1.4
  +++ LiteralPatternConverter.cs	19 Dec 2004 19:23:31 -0000	1.5
  @@ -56,10 +56,11 @@
   		/// </remarks>
   		public override PatternConverter SetNext(PatternConverter pc)
   		{
  -			if (pc is LiteralPatternConverter)
  +			LiteralPatternConverter literalPc = pc as LiteralPatternConverter;
  +			if (literalPc != null)
   			{
   				// Combine the two adjacent literals together
  -				Option = Option + ((LiteralPatternConverter)pc).Option;
  +				Option = Option + literalPc.Option;
   
   				// We are the next converter now
   				return this;
  
  
  

Mime
View raw message