[gitg/wip/techlivezh/fix-720726: 2/5] Rename 's_diffmap' to 's_diff_map'



commit 31e5536a7d3859aab206ed72c948a12b0493f353
Author: Techlive Zheng <techlivezheng gmail com>
Date:   Sun Dec 8 04:38:02 2013 +0800

    Rename 's_diffmap' to 's_diff_map'
    
    Keep naming consistency.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720726

 libgitg/gitg-diff-view.vala |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libgitg/gitg-diff-view.vala b/libgitg/gitg-diff-view.vala
index ecd1c4c..bc09f02 100644
--- a/libgitg/gitg-diff-view.vala
+++ b/libgitg/gitg-diff-view.vala
@@ -25,7 +25,7 @@ namespace Gitg
                private Commit? d_commit;
                private Settings d_fontsettings;
 
-               private static Gee.HashMap<string, DiffView> s_diffmap;
+               private static Gee.HashMap<string, DiffView> s_diff_map;
                private static uint64 s_diff_id;
 
                public File? custom_css { get; construct; }
@@ -67,7 +67,7 @@ namespace Gitg
 
                static construct
                {
-                       s_diffmap = new Gee.HashMap<string, DiffView>();
+                       s_diff_map = new Gee.HashMap<string, DiffView>();
 
                        var context = WebKit.WebContext.get_default();
                        context.register_uri_scheme("gitg-diff", gitg_diff_request);
@@ -127,9 +127,9 @@ namespace Gitg
                                var f = Soup.Form.decode(q);
                                var vid = f.lookup("viewid");
 
-                               if (vid != null && s_diffmap.has_key(vid))
+                               if (vid != null && s_diff_map.has_key(vid))
                                {
-                                       view = s_diffmap[vid];
+                                       view = s_diff_map[vid];
                                }
                        }
 
@@ -264,7 +264,7 @@ namespace Gitg
 
                        ++s_diff_id;
 
-                       s_diffmap[s_diff_id.to_string()] = this;
+                       s_diff_map[s_diff_id.to_string()] = this;
 
                        d_cancellable = new Cancellable();
 


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