aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-05-25 16:51:44 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 06:55:04 +0200
commite7365234460fc9fb949a6a9745b7041b04b6a6a4 (patch)
treefe5c2cf5d6f97a5e41570058cedff1627dc85860
parent4f0942a605ec432ae8a7b4c43e05d447967e94ce (diff)
Remove unused const
-rw-r--r--include/quickmedia/HtmlSearch.h2
-rw-r--r--src/HtmlSearch.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/quickmedia/HtmlSearch.h b/include/quickmedia/HtmlSearch.h
index 568e101..09a17e2 100644
--- a/include/quickmedia/HtmlSearch.h
+++ b/include/quickmedia/HtmlSearch.h
@@ -21,7 +21,7 @@ typedef struct {
const char* quickmedia_html_node_get_attribute_value(QuickMediaHtmlNode *self, const char *attribute_name);
/* Returns StringView where data is NULL and size is 0 if node doesn't have any text */
-const QuickMediaStringView quickmedia_html_node_get_text(QuickMediaHtmlNode *self);
+QuickMediaStringView quickmedia_html_node_get_text(QuickMediaHtmlNode *self);
/* @node is only valid within the callback function scope */
typedef void (*QuickMediaHtmlSearchResultCallback)(QuickMediaHtmlNode *node, void *userdata);
diff --git a/src/HtmlSearch.c b/src/HtmlSearch.c
index 7868f32..dcbb8f2 100644
--- a/src/HtmlSearch.c
+++ b/src/HtmlSearch.c
@@ -75,7 +75,7 @@ const char* quickmedia_html_node_get_attribute_value(QuickMediaHtmlNode *self, c
return tidyAttrValue(attr);
}
-const QuickMediaStringView quickmedia_html_node_get_text(QuickMediaHtmlNode *self) {
+QuickMediaStringView quickmedia_html_node_get_text(QuickMediaHtmlNode *self) {
QuickMediaStringView string_view;
string_view.data = NULL;
string_view.size = 0;