Use correct number type
This commit is contained in:
parent
95c409ad95
commit
8b0447668b
@ -59,7 +59,7 @@ void pretty_format_page(std::string &content) {
|
||||
}
|
||||
|
||||
|
||||
Page::Page(const uint_fast8_t number): m_number(number), m_subpage(fetchSubpage()) {
|
||||
Page::Page(const int number): m_number(number), m_subpage(fetchSubpage()) {
|
||||
}
|
||||
|
||||
Page Page::operator--(int) const {
|
||||
|
11
src/Page.hpp
11
src/Page.hpp
@ -12,17 +12,16 @@
|
||||
#include <string>
|
||||
#include <cstdint>
|
||||
|
||||
static constexpr uint_fast8_t DEFAULT_NUMBER = 100;
|
||||
static constexpr uint_fast8_t MAX_WHITESPACE = 2;
|
||||
static constexpr int DEFAULT_NUMBER = 100;
|
||||
static constexpr int MAX_WHITESPACE = 2;
|
||||
|
||||
class Page
|
||||
{
|
||||
class Page {
|
||||
private:
|
||||
uint_fast8_t m_number;
|
||||
int m_number;
|
||||
std::string m_subpage;
|
||||
|
||||
public:
|
||||
explicit Page(uint_fast8_t number = DEFAULT_NUMBER);
|
||||
explicit Page(int number = DEFAULT_NUMBER);
|
||||
|
||||
Page operator--(int) const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user