summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-11-27 18:32:06 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-11-27 18:32:06 +0000
commit714f07c48b31ddd5f87f0cef891fbba08164529d (patch)
tree86cb6e6f6c2c14233a52db853331a2a22daaa57a /desktop
parent07309888d66c608977b31955215503dc355c7d33 (diff)
downloadnetsurf-714f07c48b31ddd5f87f0cef891fbba08164529d.tar.gz
netsurf-714f07c48b31ddd5f87f0cef891fbba08164529d.tar.bz2
Rename nsurl_enquire to nsurl_has_component.
svn path=/trunk/netsurf/; revision=13183
Diffstat (limited to 'desktop')
-rw-r--r--desktop/browser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/browser.c b/desktop/browser.c
index a4e80d449..760849f6a 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -794,7 +794,7 @@ void browser_window_go_post(struct browser_window *bw, const char *url,
lwc_string_unref(bw->frag_id);
bw->frag_id = NULL;
- if (nsurl_enquire(nsurl, NSURL_FRAGMENT)) {
+ if (nsurl_has_component(nsurl, NSURL_FRAGMENT)) {
bool same_url = false;
bw->frag_id = nsurl_get_component(nsurl, NSURL_FRAGMENT);
@@ -811,7 +811,8 @@ void browser_window_go_post(struct browser_window *bw, const char *url,
* don't bother to fetch, just update the window.
*/
if (same_url && fetch_is_post == false &&
- nsurl_enquire(nsurl, NSURL_QUERY) == false) {
+ nsurl_has_component(nsurl, NSURL_QUERY) ==
+ false) {
nsurl_unref(nsurl);
if (nsref != NULL)
nsurl_unref(nsref);