diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..f421bc6 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "files.associations": { + "iostream": "cpp", + "vector": "cpp", + "format": "cpp" + } +} \ No newline at end of file diff --git a/src/Page.cpp b/src/Page.cpp index 1eefbc7..05b7875 100644 --- a/src/Page.cpp +++ b/src/Page.cpp @@ -9,6 +9,7 @@ #include "Page.hpp" #include +#include #include "stringutil.hpp" #include "cpr/cpr.h" diff --git a/src/Page.hpp b/src/Page.hpp index f36ccb0..6ea3936 100644 --- a/src/Page.hpp +++ b/src/Page.hpp @@ -9,11 +9,14 @@ #pragma once #include +#include +#include static constexpr uint_fast8_t DEFAULT_NUMBER = 100; static constexpr uint_fast8_t MAX_WHITESPACE = 2; -class Page { +class Page +{ private: uint_fast8_t number{}; std::vector subpages; @@ -31,7 +34,6 @@ public: std::string str() const; - bool refresh(); private: diff --git a/src/stringutil.hpp b/src/stringutil.hpp index 47337c5..ead8741 100644 --- a/src/stringutil.hpp +++ b/src/stringutil.hpp @@ -1,5 +1,7 @@ #pragma once + #include +#include /** * @brief String utility functions.