commit 6dda0306ea194e4b39f1b418ebd497a06b484046
parent f06e7d6dcfa09156727f658629c2fc32eba1ca93
Author: Dan Callaghan <djc@djc.id.au>
Date: Sat, 11 Sep 2010 21:06:11 +1000
class construct -> static construct, since the former is called for every
subclass too, whereas the latter is called exactly once
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/RDF.vala b/src/RDF.vala
@@ -115,7 +115,7 @@ public class Statement : Object {
// XXX naive
public class Graph : Object {
- class construct {
+ static construct {
Xml.Parser.init();
}
diff --git a/src/RDF_Writer.vala b/src/RDF_Writer.vala
@@ -4,7 +4,7 @@ namespace RDF {
private class Writer {
private static Regex local_name_regex;
- class construct {
+ static construct {
try {
local_name_regex = new Regex(".*?([_a-zA-Z][-_.a-zA-Z0-9]*)$");
} catch (RegexError e) {