[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master de4de8a 2/7: Use same argument names in imple
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master de4de8a 2/7: Use same argument names in implementation as in header |
Date: |
Sun, 13 May 2018 19:45:54 -0400 (EDT) |
branch: master
commit de4de8a47665c14b96c5768a8547a7befc2e5a73
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Use same argument names in implementation as in header
---
wx_table_generator.cpp | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/wx_table_generator.cpp b/wx_table_generator.cpp
index 781bef1..5cb5bc9 100644
--- a/wx_table_generator.cpp
+++ b/wx_table_generator.cpp
@@ -638,19 +638,19 @@ void wx_table_generator::compute_column_widths()
}
void wx_table_generator::do_output_values
- (int& x
- ,int& y
+ (int& pos_x
+ ,int& pos_y
,std::vector<std::string> const& values
)
{
- int const y_top = y;
+ int const y_top = pos_y;
- int const y_text = y + char_height_;
- y += row_height_;
+ int const y_text = pos_y + char_height_;
+ pos_y += row_height_;
if(draw_separators_)
{
- do_output_vert_separator(x, y_top, y);
+ do_output_vert_separator(pos_x, y_top, pos_y);
}
std::size_t const num_columns = all_columns().size();
@@ -665,7 +665,7 @@ void wx_table_generator::do_output_values
std::string const& s = values[col];
if(!s.empty())
{
- int x_text = x;
+ int x_text = pos_x;
if(align_right_)
{
@@ -697,7 +697,7 @@ void wx_table_generator::do_output_values
wxDCClipper clip
(dc_
,wxRect
- {wxPoint{x, y_top}
+ {wxPoint{pos_x, y_top}
,wxSize{ci.col_width() - column_margin(), row_height_}
}
);
@@ -708,10 +708,10 @@ void wx_table_generator::do_output_values
dc_.DrawText(s, x_text, y_text);
}
}
- x += ci.col_width();
+ pos_x += ci.col_width();
if(draw_separators_)
{
- do_output_vert_separator(x, y_top, y);
+ do_output_vert_separator(pos_x, y_top, pos_y);
}
}
}
- [lmi-commits] [lmi] master updated (45b086a -> a738b9f), Greg Chicares, 2018/05/14
- [lmi-commits] [lmi] master 5fd8c4b 6/7: Name identical variables identically, Greg Chicares, 2018/05/14
- [lmi-commits] [lmi] master a738b9f 7/7: Use identical variables identically, Greg Chicares, 2018/05/14
- [lmi-commits] [lmi] master de4de8a 2/7: Use same argument names in implementation as in header,
Greg Chicares <=
- [lmi-commits] [lmi] master 9aa7748 1/7: Correct a misleading comment, Greg Chicares, 2018/05/14
- [lmi-commits] [lmi] master ff9d3bc 3/7: Rename a member function for clarity, Greg Chicares, 2018/05/14
- [lmi-commits] [lmi] master 06d9a8c 5/7: Pass modifiable arguments by reference, Greg Chicares, 2018/05/14
- [lmi-commits] [lmi] master a3a294f 4/7: Pass modifiable arguments by reference, Greg Chicares, 2018/05/14