[Top][All Lists]

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

[lmi-commits] [lmi] master 6ac7331 07/13: Use a dummy name for a dummy v

From: Greg Chicares
Subject: [lmi-commits] [lmi] master 6ac7331 07/13: Use a dummy name for a dummy variable
Date: Tue, 8 May 2018 19:51:06 -0400 (EDT)

branch: master
commit 6ac73315ca609a8901fd20f93f17fef83aec96ad
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Use a dummy name for a dummy variable
    A local variable 'foo' in a function also named 'foo' makes it difficult
    to search for all calls to foo().
 wx_table_generator.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/wx_table_generator.cpp b/wx_table_generator.cpp
index e19abf6..90c6f49 100644
--- a/wx_table_generator.cpp
+++ b/wx_table_generator.cpp
@@ -379,9 +379,9 @@ wxRect wx_table_generator::cell_rect(std::size_t column, 
int y)
 wxRect wx_table_generator::text_rect(std::size_t column, int y)
-    wxRect text_rect = cell_rect(column, y).Deflate(dc_.GetCharWidth(), 0);
-    text_rect.Offset(0, char_height_);
-    return text_rect;
+    wxRect z = cell_rect(column, y).Deflate(dc_.GetCharWidth(), 0);
+    z.Offset(0, char_height_);
+    return z;
 // class members used, mutably or immutably:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]