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:
Kagami Sascha Rosylight 2021-08-09 13:37:32 +00:00
parent 4356aa3361
commit ac80a98f45
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -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