Skip to content

Commit 6d99a29

Browse files
committed
fix: too few arguments to webui_set_profile
When following the C++ hello world tutorial, the first example immediately fails to compile due to an error in hte C++ header file. ``` In file included from main.cpp:1: webui.hpp: In member function ‘void webui::window::set_proxy(std::string_view) const’: webui.hpp:202:26: error: too few arguments to function ‘void webui_set_profile(size_t, const char*, const char*)’ 202 | webui_set_profile(webui_window, proxy_server.data()); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from webui.hpp:21: webui.h:422:19: note: declared here 422 | WEBUI_EXPORT void webui_set_profile(size_t window, const char* name, const char* path); ```
1 parent e73b3cf commit 6d99a29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/webui.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ class window {
199199

200200
// Set the web browser proxy to use. Need to be called before `webui_show()`.
201201
void set_proxy(const std::string_view proxy_server = {""}) const {
202-
webui_set_profile(webui_window, proxy_server.data());
202+
webui_set_proxy(webui_window, proxy_server.data());
203203
}
204204

205205
// Get the full current URL

0 commit comments

Comments
 (0)