Bug 1265275 - Removed 'using namespace mozilla;' and 'using namespace mozilla::dom;' and replaced them with namespace mozilla{...} and namespace dom{...} from PresentationConnection.cpp r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D84725
This commit is contained in:
pctopgs 2020-07-24 09:40:24 +00:00
Родитель c5a05df5d3
Коммит d510e87b11
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -24,8 +24,8 @@
#include "PresentationConnectionList.h"
#include "PresentationLog.h"
using namespace mozilla;
using namespace mozilla::dom;
namespace mozilla {
namespace dom {
NS_IMPL_CYCLE_COLLECTION_CLASS(PresentationConnection)
@ -430,7 +430,7 @@ nsresult PresentationConnection::ProcessStateChanged(nsresult aReason) {
// If aReason is not a DOM error, use error name as message.
if (NS_FAILED(
NS_GetNameAndMessageForDOMNSResult(aReason, name, message))) {
mozilla::GetErrorName(aReason, message);
GetErrorName(aReason, message);
message.InsertLiteral("Internal error: ", 0);
}
CopyUTF8toUTF16(message, errorMsg);
@ -750,3 +750,6 @@ void PresentationConnection::AsyncCloseConnectionWithErrorMsg(
Unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(r)));
}
} // namespace dom
} // namespace mozilla