[rygel] core: Use replace_literal in MediaArtStore
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Use replace_literal in MediaArtStore
- Date: Mon, 23 May 2011 20:01:39 +0000 (UTC)
commit 76e0d6e8e093967e2490a30c28934ad6662ac95c
Author: Jens Georg <mail jensge org>
Date: Mon Apr 25 11:12:10 2011 +0300
core: Use replace_literal in MediaArtStore
The regex doesn't use back references so we can use the slightly more
efficient version
src/rygel/rygel-media-art-store.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/rygel/rygel-media-art-store.vala b/src/rygel/rygel-media-art-store.vala
index 295f758..5ad2c27 100644
--- a/src/rygel/rygel-media-art-store.vala
+++ b/src/rygel/rygel-media-art-store.vala
@@ -220,9 +220,9 @@ public class Rygel.MediaArtStore : GLib.Object {
p = re.replace_literal (p, -1, 0, "");
}
- p = char_remove_regex.replace (p, -1, 0, "");
- p = char_convert_regex.replace (p, -1, 0, " ");
- p = space_compress_regex.replace (p, -1, 0, " ");
+ p = char_remove_regex.replace_literal (p, -1, 0, "");
+ p = char_convert_regex.replace_literal (p, -1, 0, " ");
+ p = space_compress_regex.replace_literal (p, -1, 0, " ");
return p;
} catch (RegexError error) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]