Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
This commit is contained in:
@@ -209,7 +209,7 @@ const Decimal HTMLInputElement::kStepAny = Decimal(0);
|
||||
#define PROGRESS_STR "progress"
|
||||
static const uint32_t kProgressEventInterval = 50; // ms
|
||||
|
||||
class HTMLInputElementState MOZ_FINAL : public nsISupports
|
||||
class HTMLInputElementState final : public nsISupports
|
||||
{
|
||||
public:
|
||||
NS_DECLARE_STATIC_IID_ACCESSOR(NS_INPUT_ELEMENT_STATE_IID)
|
||||
@@ -331,7 +331,7 @@ namespace {
|
||||
* nsIFile::GetDirectoryEntries, which is not guaranteed to group a directory's
|
||||
* subdirectories at the beginning of the list that it returns).
|
||||
*/
|
||||
class DirPickerRecursiveFileEnumerator MOZ_FINAL
|
||||
class DirPickerRecursiveFileEnumerator final
|
||||
: public nsISimpleEnumerator
|
||||
{
|
||||
~DirPickerRecursiveFileEnumerator() {}
|
||||
@@ -367,7 +367,7 @@ public:
|
||||
}
|
||||
|
||||
NS_IMETHOD
|
||||
GetNext(nsISupports** aResult) MOZ_OVERRIDE
|
||||
GetNext(nsISupports** aResult) override
|
||||
{
|
||||
MOZ_ASSERT(!NS_IsMainThread(),
|
||||
"Walking the directory tree involves I/O, so using this "
|
||||
@@ -401,7 +401,7 @@ public:
|
||||
}
|
||||
|
||||
NS_IMETHOD
|
||||
HasMoreElements(bool* aResult) MOZ_OVERRIDE
|
||||
HasMoreElements(bool* aResult) override
|
||||
{
|
||||
*aResult = !!mNextFile;
|
||||
return NS_OK;
|
||||
@@ -501,7 +501,7 @@ DOMFileToLocalFile(nsIDOMFile* aDomFile)
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
class DirPickerFileListBuilderTask MOZ_FINAL
|
||||
class DirPickerFileListBuilderTask final
|
||||
: public nsRunnable
|
||||
{
|
||||
public:
|
||||
@@ -723,7 +723,7 @@ HTMLInputElement::nsFilePickerShownCallback::Done(int16_t aResult)
|
||||
NS_IMPL_ISUPPORTS(HTMLInputElement::nsFilePickerShownCallback,
|
||||
nsIFilePickerShownCallback)
|
||||
|
||||
class nsColorPickerShownCallback MOZ_FINAL
|
||||
class nsColorPickerShownCallback final
|
||||
: public nsIColorPickerShownCallback
|
||||
{
|
||||
~nsColorPickerShownCallback() {}
|
||||
@@ -738,8 +738,8 @@ public:
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
NS_IMETHOD Update(const nsAString& aColor) MOZ_OVERRIDE;
|
||||
NS_IMETHOD Done(const nsAString& aColor) MOZ_OVERRIDE;
|
||||
NS_IMETHOD Update(const nsAString& aColor) override;
|
||||
NS_IMETHOD Done(const nsAString& aColor) override;
|
||||
|
||||
private:
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user