[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master ccab7fb 1/4: Write a trivial const accessor i
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master ccab7fb 1/4: Write a trivial const accessor inline in class declaration |
Date: |
Wed, 5 Sep 2018 20:56:26 -0400 (EDT) |
branch: master
commit ccab7fbd0d0b1615d074c5c984cf265aaaac8ef8
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Write a trivial const accessor inline in class declaration
---
report_table.cpp | 7 -------
report_table.hpp | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/report_table.cpp b/report_table.cpp
index d42c2e3..b65bc83 100644
--- a/report_table.cpp
+++ b/report_table.cpp
@@ -217,10 +217,3 @@ paginator::paginator(int total_rows, int rows_per_group,
int max_lines_per_page)
}
}
}
-
-/// Number of pages required.
-
-int paginator::page_count() const
-{
- return page_count_;
-}
diff --git a/report_table.hpp b/report_table.hpp
index 1a1f2bd..d08b058 100644
--- a/report_table.hpp
+++ b/report_table.hpp
@@ -139,7 +139,7 @@ class LMI_SO paginator
public:
paginator(int total_rows, int rows_per_group, int max_lines_per_page);
- int page_count() const;
+ int page_count() const {return page_count_;}
private:
int const total_rows_;