Commit Graph

8 Commits

Author SHA1 Message Date
David Major
a660713d2b Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());

This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.

I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.

MozReview-Commit-ID: Kh1rUziVllo
2017-03-14 15:26:27 +13:00
Chris Peterson
a4aa377b2d Bug 1336778 - Part 2: Remove always-false #if WINVER < 0x0600 (Windows Vista) checks in widget/windows. r=jimm
As of bug 1325299, WINVER is always >= 0x0601 (Windows 7).

MozReview-Commit-ID: Hw5FcEdP0os
2017-01-25 00:28:09 -08:00
Mike Hommey
7758307a7b Bug 1289248 - Stop using MOZ_WINSDK_MAXVER outside configure. r=blassey,cpearce
Its value was only used in a couple C++ files, and a corresponding value
can be gotten directly from including winsdkver.h.
2016-07-22 18:52:13 +09:00
Jacek Caban
bb5e079efe Bug 1263677 - Disable windows.ui.viewmanagement.h usage on mingw. r=jimm 2016-04-12 12:38:00 +02:00
Makoto Kato
a29ff1bc8f Bug 1245050 - WindowsUIUtils.cpp should use LF instead of CRLF. r=jimm 2016-02-02 19:32:37 +09:00
Makoto Kato
a16b9c3fd9 Bug 1187178 - Use MOZ_WINSDK_MAXVER instead of #ifndef. r=jimm 2015-08-11 14:12:29 +09:00
Trevor Saunders
982cab05e1 no bug - fix case of nsIDocShell.h in WindowsUIUtils.cpp 2015-08-05 17:19:45 -04:00
Gijs Kruitbosch
963d6e0d47 Bug 1170522 - expose whether or not we're in tablet mode to xul/js/css, r=jimm,ted 2015-06-16 19:51:29 +01:00