[banshee] Osx: fix build, avoiding optional parameters (bgo#710475)
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Osx: fix build, avoiding optional parameters (bgo#710475)
- Date: Fri, 18 Oct 2013 21:00:14 +0000 (UTC)
commit b671652e585362d2260735036a76d60096ef8508
Author: Michael Foster <savetheinterpod gmail com>
Date: Fri Oct 18 22:58:11 2013 +0200
Osx: fix build, avoiding optional parameters (bgo#710475)
Optional parameters were banned recently to still be compatible
with .NET 2.0 as we advertise. The change broke the OSX build,
which this fixes.
Signed-off-by: Andrés G. Aragoneses <knocte gmail com>
.../LowLevel/OsxDiskArbiter.cs | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/Backends/Banshee.Osx/Banshee.Hardware.Osx/LowLevel/OsxDiskArbiter.cs
b/src/Backends/Banshee.Osx/Banshee.Hardware.Osx/LowLevel/OsxDiskArbiter.cs
index ddcd25a..e8a607c 100644
--- a/src/Backends/Banshee.Osx/Banshee.Hardware.Osx/LowLevel/OsxDiskArbiter.cs
+++ b/src/Backends/Banshee.Osx/Banshee.Hardware.Osx/LowLevel/OsxDiskArbiter.cs
@@ -283,7 +283,8 @@ namespace Banshee.Hardware.Osx.LowLevel
// we need to map the volumeUrl's to pathes
// like file://localhost/Volumes/Mountpoint -> /Volumes/MountPoint
- public static string UrlToFileSystemPath (string url, uint mode = 0) {
+ public static string UrlToFileSystemPath (string url, uint mode)
+ {
if (url == null) {
throw new ArgumentException ("url cannot be null");
}
@@ -295,6 +296,11 @@ namespace Banshee.Hardware.Osx.LowLevel
}
}
+ public static string UrlToFileSystemPath (string url)
+ {
+ return UrlToFileSystemPath (url, 0);
+ }
+
/// <summary>
/// Gets the name of the disk by its BSD Name.
/// </summary>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]