banshee r4826 - in trunk/banshee: . src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage



Author: abock
Date: Mon Nov 10 19:49:39 2008
New Revision: 4826
URL: http://svn.gnome.org/viewvc/banshee?rev=4826&view=rev

Log:
* banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageDevice.cs:
  Don't use var because gmcs 1.2.5 sucks more than I thought it did

* banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/DeviceMapper.cs:
  Unbreak the build

Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/DeviceMapper.cs
   trunk/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageDevice.cs

Modified: trunk/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/DeviceMapper.cs
==============================================================================
--- trunk/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/DeviceMapper.cs	(original)
+++ trunk/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/DeviceMapper.cs	Mon Nov 10 19:49:39 2008
@@ -43,7 +43,7 @@
                 short product_id = (short)source.UsbDevice.ProductId;
                 
                 if (node.Matches (vendor_id, product_id)) {
-                    MassStorageDevice device = (MassStorageDevice)node.CreateInstance (); 
+                    CustomMassStorageDevice device = (CustomMassStorageDevice)node.CreateInstance (); 
                     device.VendorProductInfo = new VendorProductInfo (
                         node.VendorName, node.ProductName,
                         vendor_id, product_id);

Modified: trunk/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageDevice.cs
==============================================================================
--- trunk/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageDevice.cs	(original)
+++ trunk/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageDevice.cs	Mon Nov 10 19:49:39 2008
@@ -75,7 +75,7 @@
             }
             
             try {
-                foreach (var item in new KeyValueParser (reader = new StreamReader (path))) {
+                foreach (KeyValuePair<string, string []> item in new KeyValueParser (reader = new StreamReader (path))) {
                     try {
                         switch (item.Key) {
                             case "name": name = item.Value[0]; break;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]