[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 161fab5: Pass int by value when reference not
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 161fab5: Pass int by value when reference not needed |
Date: |
Sat, 3 Dec 2016 08:30:55 +0000 (UTC) |
branch: master
commit 161fab557aafc132f976b182af5bbf76a6db1bf8
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Pass int by value when reference not needed
Discussion:
lists.nongnu.org/archive/html/lmi/2016-12/msg00002.html
---
rate_table.cpp | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/rate_table.cpp b/rate_table.cpp
index c705122..e123077 100644
--- a/rate_table.cpp
+++ b/rate_table.cpp
@@ -1006,7 +1006,7 @@ class table_impl
(int num_spaces
,char const* start
,char const*& current
- ,int& line_num
+ ,int line_num
);
// Helper of parse_values() parsing an integer value of at most age_width
@@ -1015,7 +1015,7 @@ class table_impl
uint16_t parse_age
(char const* start
,char const*& current
- ,int& line_num
+ ,int line_num
);
// Helper of parse_values() parsing a single floating point value using the
@@ -1024,7 +1024,7 @@ class table_impl
double parse_single_value
(char const* start
,char const*& current
- ,int& line_num
+ ,int line_num
);
// Compute the expected number of values from minimum and maximum age
@@ -1521,7 +1521,7 @@ void table_impl::parse_select_header(std::istream& is,
int& line_num) const
uint16_t table_impl::parse_age
(char const* start
,char const*& current
- ,int& line_num
+ ,int line_num
)
{
using text_format::age_width;
@@ -1564,7 +1564,7 @@ uint16_t table_impl::parse_age
double table_impl::parse_single_value
(char const* start
,char const*& current
- ,int& line_num
+ ,int line_num
)
{
// The number of spaces before the value should be at least one,
@@ -1660,7 +1660,7 @@ void table_impl::skip_spaces
(int num_spaces
,char const* start
,char const*& current
- ,int& line_num
+ ,int line_num
)
{
if(std::strncmp(current, std::string(num_spaces, ' ').c_str(), num_spaces)
!= 0)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [lmi] master 161fab5: Pass int by value when reference not needed,
Greg Chicares <=