Re: Converting const char ()[N] to nsACString

2017-07-21 Thread nmago
воскресенье, 9 июля 2017 г., 4:10:43 UTC+3 пользователь Boris Zbarsky написал: > On 7/5/17 5:41 AM, nmago wrote: > > char* cname = new char[N]; > > memcpy(cname, , N); > > nsACString strName(cname, N, 0); > > This copies the data twice, and leaks it once, as far as I c

Re: Converting const char ()[N] to nsACString

2017-07-05 Thread nmago
Thank you, Honza Bambas and smaug! Found solution: char* cname = new char[N]; memcpy(cname, , N); nsACString strName(cname, N, 0); ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

How can I get SOCKS settings params of Firefox?

2017-10-20 Thread nmago
Hi everyone! In crashreporter there is the function to load HTTP Proxy settings[1], and I'm interested how to get SOCKS proxy params (adress, port) in right way? Will it work if I just replace 'http' by 'socks' in: host = gconf_client_get_string(conf, HTTP_PROXY_DIR "/host", nullptr); port =

Re: How can I get SOCKS settings params of Firefox?

2017-10-30 Thread nmago
понедельник, 23 октября 2017 г., 11:52:19 UTC+3 пользователь Karl Tomlinson написал: > I don't know how well GConf is supported by more recent GNOME > versions. I assume GSettings support was added to > nsUnixSystemProxySettings because GConf was to be no longer > supported, but the crash