diff --git a/lib/Case.vala b/lib/Case.vala index 464e523..d1866f9 100644 --- a/lib/Case.vala +++ b/lib/Case.vala @@ -16,6 +16,7 @@ */ namespace ChCase { + /** * Represents the case of a text. */ diff --git a/lib/PatternType/Pattern.vala b/lib/PatternType/Pattern.vala index 8b4a354..6bab047 100644 --- a/lib/PatternType/Pattern.vala +++ b/lib/PatternType/Pattern.vala @@ -41,11 +41,6 @@ namespace ChCase.PatternType { public GLib.Array replace_patterns { get; construct; } protected Pattern (Case result_case) { - Object ( - detect_patterns: new GLib.Array (), - replace_patterns: new GLib.Array () - ); - switch (result_case) { case Case.SPACE_SEPARATED: to_space_separated (); @@ -71,6 +66,11 @@ namespace ChCase.PatternType { } } + construct { + detect_patterns = new GLib.Array (); + replace_patterns = new GLib.Array (); + } + /** * Set regex patterns; one is to detect the source case and another is to detect the result case. *