aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-23 18:54:18 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-23 18:54:22 +0100
commit1de2ff02bb746607727900180b6f32ded0cd7856 (patch)
tree0f9f634674d5f48a65e84c8067461e53d83700e2 /include
parent89c41c1488854858e02ff6bd48a6518161fa05a5 (diff)
Allow opening 4chan post directly
Diffstat (limited to 'include')
-rw-r--r--include/BodyItem.hpp5
-rw-r--r--include/StringUtils.hpp2
2 files changed, 2 insertions, 5 deletions
diff --git a/include/BodyItem.hpp b/include/BodyItem.hpp
index 89adc5d..a2dae24 100644
--- a/include/BodyItem.hpp
+++ b/include/BodyItem.hpp
@@ -188,11 +188,6 @@ namespace QuickMedia {
std::unique_ptr<Text> description_text;
std::unique_ptr<Text> author_text;
std::unique_ptr<mgl::Text> timestamp_text; // TODO: Remove
- // Used by image boards for example. The elements are indices to other body items
- std::vector<size_t> replies_to;
- // Used by image boards for example. The elements are indices to other body items
- std::vector<size_t> replies;
- std::string post_number;
void *userdata; // Not managed, should be deallocated by whoever sets this
float loaded_height = 0.0f;
float height = 0.0f;
diff --git a/include/StringUtils.hpp b/include/StringUtils.hpp
index 91de829..002b4c2 100644
--- a/include/StringUtils.hpp
+++ b/include/StringUtils.hpp
@@ -27,6 +27,8 @@ namespace QuickMedia {
bool strncase_equals(const char *str1, const char *str2, size_t length);
bool strcase_equals(const char *str1, const char *str2);
// Note: does not check for overflow
+ bool to_num(const char *str, size_t size, int64_t &num);
+ // Note: does not check for overflow
bool to_num(const char *str, size_t size, int &num);
// Note: does not check for overflow
bool to_num_hex(const char *str, size_t size, int &num);