[banshee] Fix some gendarme warnings
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Fix some gendarme warnings
- Date: Sat, 20 Mar 2010 01:39:27 +0000 (UTC)
commit b158e211016bf816c19006135bce78c7f00061aa
Author: Gabriel Burt <gabriel burt gmail com>
Date: Fri Mar 19 18:39:08 2010 -0700
Fix some gendarme warnings
.../GConfConfigurationClient.cs | 2 +-
.../Banshee.Database/BansheeDbFormatMigrator.cs | 2 +-
.../Banshee.Metadata.Rhapsody/RhapsodyQueryJob.cs | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/Backends/Banshee.Gnome/Banshee.GnomeBackend/GConfConfigurationClient.cs b/src/Backends/Banshee.Gnome/Banshee.GnomeBackend/GConfConfigurationClient.cs
index 8943197..3011437 100644
--- a/src/Backends/Banshee.Gnome/Banshee.GnomeBackend/GConfConfigurationClient.cs
+++ b/src/Backends/Banshee.Gnome/Banshee.GnomeBackend/GConfConfigurationClient.cs
@@ -84,7 +84,7 @@ namespace Banshee.GnomeBackend
} else {
@namespace = @namespace.Replace ('/', '_');
key_table.Add (hash_key, String.Concat (BaseKey,
- StringUtil.CamelCaseToUnderCase (String.Concat (@namespace.Replace (".", "/"), "/", part))
+ StringUtil.CamelCaseToUnderCase (String.Concat (@namespace.Replace ('.', '/'), "/", part))
));
}
diff --git a/src/Core/Banshee.Services/Banshee.Database/BansheeDbFormatMigrator.cs b/src/Core/Banshee.Services/Banshee.Database/BansheeDbFormatMigrator.cs
index 00d7d38..bf66e5f 100644
--- a/src/Core/Banshee.Services/Banshee.Database/BansheeDbFormatMigrator.cs
+++ b/src/Core/Banshee.Services/Banshee.Database/BansheeDbFormatMigrator.cs
@@ -70,7 +70,7 @@ namespace Banshee.Database
public event EventHandler Started;
public event EventHandler Finished;
- protected class DatabaseVersionAttribute : Attribute
+ protected sealed class DatabaseVersionAttribute : Attribute
{
private int version;
diff --git a/src/Core/Banshee.Services/Banshee.Metadata.Rhapsody/RhapsodyQueryJob.cs b/src/Core/Banshee.Services/Banshee.Metadata.Rhapsody/RhapsodyQueryJob.cs
index 4dfbdab..3c04a24 100644
--- a/src/Core/Banshee.Services/Banshee.Metadata.Rhapsody/RhapsodyQueryJob.cs
+++ b/src/Core/Banshee.Services/Banshee.Metadata.Rhapsody/RhapsodyQueryJob.cs
@@ -51,7 +51,7 @@ namespace Banshee.Metadata.Rhapsody
private static Regex filter_regex = new Regex (@"[^A-Za-z0-9]*", RegexOptions.Compiled);
private static string EscapeUrlPart (string part)
{
- return filter_regex.Replace (part, "").Replace (" ", "-").ToLower ();
+ return filter_regex.Replace (part, "").Replace (' ', '-').ToLower ();
}
private static string GetAlbumUrl (IBasicTrackInfo track)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]