From e7365234460fc9fb949a6a9745b7041b04b6a6a4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 25 May 2019 16:51:44 +0200 Subject: Remove unused const --- include/quickmedia/HtmlSearch.h | 2 +- src/HtmlSearch.c | 2 +- 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; -- cgit v1.2.3