You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by ni...@apache.org on 2004/12/19 20:23:20 UTC
cvs commit: logging-log4net/src/Layout PatternLayout.cs
nicko 2004/12/19 11:23:20
Modified: src/Layout PatternLayout.cs
Log:
Updates suggested by FxCop.
Minor naming changes to internal types.
Perf improvements to type check + type cast code.
Revision Changes Path
1.17 +3 -2 logging-log4net/src/Layout/PatternLayout.cs
Index: PatternLayout.cs
===================================================================
RCS file: /home/cvs/logging-log4net/src/Layout/PatternLayout.cs,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- PatternLayout.cs 6 Dec 2004 02:22:44 -0000 1.16
+++ PatternLayout.cs 19 Dec 2004 19:23:20 -0000 1.17
@@ -961,9 +961,10 @@
PatternConverter curConverter = m_head;
while(curConverter != null)
{
- if (curConverter is PatternLayoutConverter)
+ PatternLayoutConverter layoutConverter = curConverter as PatternLayoutConverter;
+ if (layoutConverter != null)
{
- if (!((PatternLayoutConverter)curConverter).IgnoresException)
+ if (!layoutConverter.IgnoresException)
{
// Found converter that handles the exception
this.IgnoresException = false;