[rygel] media-db: Minor coding stlye fixes
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-db: Minor coding stlye fixes
- Date: Sun, 14 Mar 2010 22:36:44 +0000 (UTC)
commit 89b7da75262e1d9696de8c61f900806d0a3604bc
Author: Jens Georg <mail jensge org>
Date: Sun Jan 31 15:10:31 2010 +0100
media-db: Minor coding stlye fixes
src/rygel/rygel-database.vala | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/src/rygel/rygel-database.vala b/src/rygel/rygel-database.vala
index 818d3c6..a5140a3 100644
--- a/src/rygel/rygel-database.vala
+++ b/src/rygel/rygel-database.vala
@@ -31,7 +31,7 @@ internal class Rygel.Database : Object {
public delegate bool RowCallback (Sqlite.Statement stmt);
- public Database(string name) {
+ public Database (string name) {
var dirname = Path.build_filename (Environment.get_user_cache_dir (),
"rygel");
DirUtils.create_with_parents (dirname, 0750);
@@ -42,6 +42,7 @@ internal class Rygel.Database : Object {
warning ("Failed to open database: %d, %s",
rc,
db.errmsg ());
+
return;
}
this.db.exec ("PRAGMA cache_size = 32768");
@@ -51,8 +52,8 @@ internal class Rygel.Database : Object {
}
public int exec (string sql,
- GLib.Value[]? values = null,
- RowCallback? callback = null,
+ GLib.Value[]? values = null,
+ RowCallback? callback = null,
Cancellable? cancellable = null) throws DatabaseError {
#if RYGEL_DEBUG_SQL
var t = new Timer ();
@@ -87,8 +88,9 @@ internal class Rygel.Database : Object {
return rc;
}
- Statement prepare_statement (string sql, GLib.Value[]? values = null)
- throws DatabaseError {
+ private Statement prepare_statement (string sql,
+ GLib.Value[]? values = null)
+ throws DatabaseError {
Statement statement;
var rc = db.prepare_v2 (sql, -1, out statement, null);
if (rc != Sqlite.OK)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]