From 1de2ff02bb746607727900180b6f32ded0cd7856 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 23 Nov 2022 18:54:18 +0100 Subject: Allow opening 4chan post directly --- include/BodyItem.hpp | 5 ----- include/StringUtils.hpp | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'include') 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 description_text; std::unique_ptr author_text; std::unique_ptr timestamp_text; // TODO: Remove - // Used by image boards for example. The elements are indices to other body items - std::vector replies_to; - // Used by image boards for example. The elements are indices to other body items - std::vector 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); -- cgit v1.2.3