[rygel] media-db: Coding style fixes
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-db: Coding style fixes
- Date: Sun, 14 Mar 2010 22:36:59 +0000 (UTC)
commit 011f43d3a948506221f0398916834ee0f297e1a1
Author: Jens Georg <mail jensge org>
Date: Sun Jan 31 16:53:56 2010 +0100
media-db: Coding style fixes
src/rygel/rygel-media-db.vala | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/rygel/rygel-media-db.vala b/src/rygel/rygel-media-db.vala
index 654cf51..6708e00 100644
--- a/src/rygel/rygel-media-db.vala
+++ b/src/rygel/rygel-media-db.vala
@@ -251,12 +251,13 @@ public class Rygel.MediaDB : Object {
public void remove_object (MediaObject obj) throws DatabaseError,
MediaDBError {
this.remove_by_id (obj.id);
- if (obj is MediaItem)
+ if (obj is MediaItem) {
item_removed (obj.id);
- else if (obj is MediaContainer)
+ } else if (obj is MediaContainer) {
container_removed (obj.id);
- else
+ } else {
throw new MediaDBError.INVALID_TYPE ("Invalid object type");
+ }
}
public void save_object (MediaObject obj) throws Error {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]