Skip to content
Browse files

Do not store Hpricot symbols in static fields.

  • Loading branch information...
1 parent fac026f commit 5829ca8c74ae2088efaa0728c622ade755e80f27 @nrk committed
Showing with 19 additions and 19 deletions.
  1. +19 −19 src/HpricotScanner.cs
View
38 src/HpricotScanner.cs
@@ -32,24 +32,24 @@ public class HpricotScanner {
#region fields - hpricot symbols
- private static RubySymbol sym_xmldecl;
- private static RubySymbol sym_doctype;
- private static RubySymbol sym_procins;
- private static RubySymbol sym_stag;
- private static RubySymbol sym_etag;
- private static RubySymbol sym_emptytag;
- private static RubySymbol sym_comment;
- private static RubySymbol sym_cdata;
- private static RubySymbol sym_text;
- private static RubySymbol sym_EMPTY;
- private static RubySymbol sym_CDATA;
-
- private static RubySymbol symAllow;
- private static RubySymbol symDeny;
-
- private static RubySymbol _optXml;
- private static RubySymbol _optFixupTags;
- private static RubySymbol _optXhtmlStrict;
+ private RubySymbol sym_xmldecl;
+ private RubySymbol sym_doctype;
+ private RubySymbol sym_procins;
+ private RubySymbol sym_stag;
+ private RubySymbol sym_etag;
+ private RubySymbol sym_emptytag;
+ private RubySymbol sym_comment;
+ private RubySymbol sym_cdata;
+ private RubySymbol sym_text;
+ private RubySymbol sym_EMPTY;
+ private RubySymbol sym_CDATA;
+
+ private RubySymbol symAllow;
+ private RubySymbol symDeny;
+
+ private RubySymbol _optXml;
+ private RubySymbol _optFixupTags;
+ private RubySymbol _optXhtmlStrict;
#endregion
@@ -985,7 +985,7 @@ public class HpricotScanner {
InitializeHpricotSymbols(_context);
}
- private static void InitializeHpricotSymbols(RubyContext context) {
+ private void InitializeHpricotSymbols(RubyContext context) {
sym_xmldecl = context.CreateAsciiSymbol("xmldecl");
sym_doctype = context.CreateAsciiSymbol("doctype");
sym_procins = context.CreateAsciiSymbol("procins");

0 comments on commit 5829ca8

Please sign in to comment.
Something went wrong with that request. Please try again.