[rygel] media-export: Keep const in the associated class
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Keep const in the associated class
- Date: Wed, 23 Sep 2009 11:19:40 +0000 (UTC)
commit f878facbceb2e52e491508e4f16daa5c697c1d84
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Sep 23 13:49:30 2009 +0300
media-export: Keep const in the associated class
Keep constant in the associated class.
.../rygel-media-export-root-container.vala | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-root-container.vala b/src/plugins/media-export/rygel-media-export-root-container.vala
index bb6b1b3..7bc38c0 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -20,12 +20,12 @@
using Gee;
-const string DYNAMIC_CONTAINER_ID = "DynamicContainerId";
-
internal class Rygel.MediaExportDynamicContainer : Rygel.MediaDBContainer {
+ public const string ID = "DynamicContainerId";
+
public MediaExportDynamicContainer (MediaDB media_db,
MediaContainer parent) {
- base (media_db, DYNAMIC_CONTAINER_ID, "Dynamic");
+ base (media_db, ID, "Dynamic");
this.parent = parent;
}
@@ -188,7 +188,7 @@ public class Rygel.MediaExportRootContainer : Rygel.MediaDBContainer {
}
foreach (var id in ids) {
- if (id == DYNAMIC_CONTAINER_ID)
+ if (id == MediaExportDynamicContainer.ID)
continue;
debug ("Id %s no longer in config, deleting...",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]