Bug 1151694 - Part 2 - imgTools should be inside mozilla::image namespace. r=bbirtles
authorHiroyuki Ikezoe <hiikezoe@mozilla-japan.org>
Thu, 03 Sep 2015 23:00:00 +0200
changeset 293474 21e38aa30e1b6f18f2e9fbb6853043e13a9d5448
parent 293473 ea80856ff2f4f626d25fc5500ff21d1cc0d6ed5a
child 293475 7907970ddde9e61a331371c19e51f4afbf1d87fb
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbirtles
bugs1151694
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1151694 - Part 2 - imgTools should be inside mozilla::image namespace. r=bbirtles
image/imgTools.cpp
image/imgTools.h
--- a/image/imgTools.cpp
+++ b/image/imgTools.cpp
@@ -20,20 +20,20 @@
 #include "nsStreamUtils.h"
 #include "nsContentUtils.h"
 #include "ImageFactory.h"
 #include "Image.h"
 #include "ScriptedNotificationObserver.h"
 #include "imgIScriptedNotificationObserver.h"
 #include "gfxPlatform.h"
 
-using namespace mozilla;
-using namespace mozilla::image;
 using namespace mozilla::gfx;
 
+namespace mozilla {
+namespace image {
 /* ========== imgITools implementation ========== */
 
 
 
 NS_IMPL_ISUPPORTS(imgTools, imgITools)
 
 imgTools::imgTools()
 {
@@ -344,8 +344,11 @@ imgTools::GetImgLoaderForDocument(nsIDOM
 NS_IMETHODIMP
 imgTools::GetImgCacheForDocument(nsIDOMDocument* aDoc, imgICache** aCache)
 {
   nsCOMPtr<imgILoader> loader;
   nsresult rv = GetImgLoaderForDocument(aDoc, getter_AddRefs(loader));
   NS_ENSURE_SUCCESS(rv, rv);
   return CallQueryInterface(loader, aCache);
 }
+
+} // namespace image
+} // namespace mozilla
--- a/image/imgTools.h
+++ b/image/imgTools.h
@@ -12,20 +12,27 @@
 #define NS_IMGTOOLS_CID \
 { /* 3d8fa16d-c9e1-4b50-bdef-2c7ae249967a */         \
      0x3d8fa16d,                                     \
      0xc9e1,                                         \
      0x4b50,                                         \
     {0xbd, 0xef, 0x2c, 0x7a, 0xe2, 0x49, 0x96, 0x7a} \
 }
 
+namespace mozilla {
+namespace image {
+
 class imgTools final : public imgITools
 {
 public:
   NS_DECL_ISUPPORTS
   NS_DECL_IMGITOOLS
 
   imgTools();
 
 private:
   virtual ~imgTools();
 };
+
+} // namespace image
+} // namespace mozilla
+
 #endif // mozilla_image_imgITools_h