[rygel] core: Minor coding-style fix
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Minor coding-style fix
- Date: Wed, 9 Mar 2011 15:27:03 +0000 (UTC)
commit 66c6eb732900302d26d57fd236b769ab4cb72601
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Mar 9 17:26:18 2011 +0200
core: Minor coding-style fix
src/rygel/rygel-xbox-hacks.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-xbox-hacks.vala b/src/rygel/rygel-xbox-hacks.vala
index 9b75e30..697da0a 100644
--- a/src/rygel/rygel-xbox-hacks.vala
+++ b/src/rygel/rygel-xbox-hacks.vala
@@ -37,7 +37,8 @@ internal class Rygel.XBoxHacks : GLib.Object {
private static string MODEL_NAME = "Windows Media Connect";
public XBoxHacks.for_action (ServiceAction action) throws XBoxHacksError {
- var agent = action.get_message ().request_headers.get_one ("User-Agent");
+ unowned MessageHeaders headers = action.get_message ().request_headers;
+ var agent = headers.get_one ("User-Agent");
if (!(agent.contains ("Xbox") &&
agent.contains ("Allegro-Software-WebClient"))) {
throw new XBoxHacksError.NA (_("Not Applicable"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]