aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;