[tracker] Do not access static members with instance references in Vala
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] Do not access static members with instance references in Vala
- Date: Tue, 14 Aug 2012 08:53:42 +0000 (UTC)
commit 1a9f630e2ff6f95cdf824c82629aa56517ed09d9
Author: JÃrg Billeter <j bitron ch>
Date: Tue Aug 14 10:49:41 2012 +0200
Do not access static members with instance references in Vala
src/libtracker-data/tracker-turtle-reader.vala | 4 ++--
src/libtracker-sparql-backend/tracker-backend.vala | 6 +++---
src/libtracker-sparql/tracker-builder.vala | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-data/tracker-turtle-reader.vala b/src/libtracker-data/tracker-turtle-reader.vala
index b57235a..8acb082 100644
--- a/src/libtracker-data/tracker-turtle-reader.vala
+++ b/src/libtracker-data/tracker-turtle-reader.vala
@@ -330,7 +330,7 @@ public class Tracker.TurtleReader : Object {
}
case State.OBJECT:
if (accept (SparqlTokenType.COMMA)) {
- state = state.PREDICATE;
+ state = State.PREDICATE;
continue;
} else if (accept (SparqlTokenType.SEMICOLON)) {
if (accept (SparqlTokenType.DOT)) {
@@ -338,7 +338,7 @@ public class Tracker.TurtleReader : Object {
state = State.BOS;
continue;
}
- state = state.SUBJECT;
+ state = State.SUBJECT;
continue;
} else if (subject_stack.length > 0) {
// end of anonymous blank node
diff --git a/src/libtracker-sparql-backend/tracker-backend.vala b/src/libtracker-sparql-backend/tracker-backend.vala
index 0b52bd0..3c74e80 100644
--- a/src/libtracker-sparql-backend/tracker-backend.vala
+++ b/src/libtracker-sparql-backend/tracker-backend.vala
@@ -184,7 +184,7 @@ class Tracker.Sparql.Backend : Connection {
}
switch (backend) {
- case backend.AUTO:
+ case Backend.AUTO:
try {
direct = new Tracker.Direct.Connection ();
} catch (Error e) {
@@ -194,11 +194,11 @@ class Tracker.Sparql.Backend : Connection {
bus = new Tracker.Bus.Connection ();
break;
- case backend.DIRECT:
+ case Backend.DIRECT:
direct = new Tracker.Direct.Connection ();
break;
- case backend.BUS:
+ case Backend.BUS:
bus = new Tracker.Bus.Connection ();
break;
diff --git a/src/libtracker-sparql/tracker-builder.vala b/src/libtracker-sparql/tracker-builder.vala
index 42644f3..6d07d1e 100644
--- a/src/libtracker-sparql/tracker-builder.vala
+++ b/src/libtracker-sparql/tracker-builder.vala
@@ -655,7 +655,7 @@ public class Tracker.Sparql.Builder : Object {
* Since: 0.10
*/
public void object_blank_close ()
- requires (state == State.OBJECT && states[states.length - 3] == state.BLANK)
+ requires (state == State.OBJECT && states[states.length - 3] == State.BLANK)
{
str.append ("]");
states.length -= 3;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]