Re: Visual Studio Code recommended extensions

2017-02-24 Thread James Cheng
Hi, Is it possible to configure VSCode to make "watch window" show "value" with *"type" *information especially for strong typed language C++? Cheers, James 2017-02-24 0:48 GMT+08:00 Marco Bonardo : > Hi, > I recently started testing VS Code as a replacement for Sublime Text or > Atom, and so

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

2017-07-05 Thread James Cheng
Why do you need a copy? Could you just cast the name to char*? 2017年7月5日 下午5:45,"nmago" 寫道: Thank you, Honza Bambas and smaug! Found solution: char* cname = new char[N]; memcpy(cname, &name, N); nsACString strName(cname, N, 0); ___ dev-platform mailin

Re: refcounting - which types to use ?

2017-08-24 Thread James Cheng
How could I make it compile error? I did write RefPtr xxx = yyy; xxx.forget(); It is ok for compiling on my Mac. The comment [1] said " Makes it a compile time error to not use the return value of a function which has this type", but how do I make the clang format take effect? BTW, if you want

Re: Firefox build issues with Rust and the new VS2017 15.5 update

2017-12-07 Thread James Cheng
Hi Ryan, I did ``./mach bootstrap`` and the problem still happened with my VS 15.5 update. I deleted the folders under my .mozbuild and do the bootstrap again but it seems useless... The errors are something like 9:58.83 c:\gecko-dev\obj-x86_64-pc-mingw32\dist\include\gtest/gtest-printers.h(8

Re: Be more lenient with the NS_LITERAL_CSTRING macro

2016-08-12 Thread James Cheng
Once you defined NS_LITERAL_CSTRING(s) as static_cast(nsLiteralCString(s)) const char kSomeData[] = {5,5,6,6}; which is no a literal string can be passed to the constructor [1]. Non-null terminated data may cause some unexpected behavior. [1] https://dxr.mozilla.org/mozilla-central/source/xpco

Re: xulrunner 31, swt 4.5, ZOOM

2015-07-03 Thread James Cheng
昂鞥哦啊嗯嗯o鞥偶鞥/t身材一 2015年7月3日 下午3:30於 寫道: > Hi, > > I have an SWT application that uses a browser to display HTML pages. > Latest SWT 4.5 now support XulRunner v31, but something has changed: zoom > is not working anymore. It was working before with SWT 4.4 and XulRunner > v10. > > I have no experienc