mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1723050 - Part 36: Replace typedef by using in dom/xul/ r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D121334
This commit is contained in:
parent
4356aa3361
commit
ac80a98f45
@ -60,7 +60,7 @@ class nsXULPrototypeDocument;
|
||||
class nsXULPrototypeNode;
|
||||
struct JSContext;
|
||||
|
||||
typedef nsTArray<RefPtr<nsXULPrototypeNode>> nsPrototypeArray;
|
||||
using nsPrototypeArray = nsTArray<RefPtr<nsXULPrototypeNode>>;
|
||||
|
||||
namespace JS {
|
||||
class CompileOptions;
|
||||
@ -329,7 +329,7 @@ ASSERT_NODE_FLAGS_SPACE(ELEMENT_TYPE_SPECIFIC_BITS_OFFSET + 2);
|
||||
|
||||
class nsXULElement : public nsStyledElement {
|
||||
protected:
|
||||
typedef mozilla::dom::Document Document;
|
||||
using Document = mozilla::dom::Document;
|
||||
|
||||
// Use Construct to construct elements instead of this constructor.
|
||||
explicit nsXULElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
|
||||
@ -395,7 +395,7 @@ class nsXULElement : public nsStyledElement {
|
||||
|
||||
virtual bool IsEventAttributeNameInternal(nsAtom* aName) override;
|
||||
|
||||
typedef mozilla::dom::DOMString DOMString;
|
||||
using DOMString = mozilla::dom::DOMString;
|
||||
void GetXULAttr(nsAtom* aName, DOMString& aResult) const {
|
||||
GetAttr(kNameSpaceID_None, aName, aResult);
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ class Element;
|
||||
*/
|
||||
class nsXULPrototypeDocument final : public nsISerializable {
|
||||
public:
|
||||
typedef std::function<void()> Callback;
|
||||
using Callback = std::function<void()>;
|
||||
|
||||
// nsISupports interface
|
||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||
|
Loading…
Reference in New Issue
Block a user