Bug 1278403 - Clean up gfxEnv.h - r=milan
authorJeff Gilbert <jgilbert@mozilla.com>
Mon, 06 Jun 2016 15:26:44 -0700
changeset 327298 0b2f6a1940636c1da695bc0bcd7890a222e638c5
parent 327297 42753a079c662c6df44f566ef42d50d246c3c665
child 327299 b1b7a42073783072d54a1de2f459f3b0c80e5a2a
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmilan
bugs1278403
milestone50.0a1
Bug 1278403 - Clean up gfxEnv.h - r=milan MozReview-Commit-ID: 1TSqW6N3CDs
gfx/thebes/gfxEnv.h
--- a/gfx/thebes/gfxEnv.h
+++ b/gfx/thebes/gfxEnv.h
@@ -81,17 +81,17 @@ public:
   DECL_GFX_ENV("MOZ_GL_DEBUG_ABORT_ON_ERROR", GlDebugAbortOnError);
 
   // Count GL extensions
   DECL_GFX_ENV("MOZ_GL_DUMP_EXTS", GlDumpExtensions);
 
   // Very noisy GLContext and GLContextProviderELG
   DECL_GFX_ENV("MOZ_GL_SPEW", GlSpew);
 
-  // Do extra work before and after each GLX call in GLContextProviderGLX 
+  // Do extra work before and after each GLX call in GLContextProviderGLX
   DECL_GFX_ENV("MOZ_GLX_DEBUG", GlxDebug);
 
   // Use X compositing
   DECL_GFX_ENV("MOZ_LAYERS_ENABLE_XLIB_SURFACES", LayersEnableXlibSurfaces);
 
   // GL compositing on Windows
   DECL_GFX_ENV("MOZ_LAYERS_PREFER_EGL", LayersPreferEGL);
 
@@ -103,17 +103,17 @@ public:
 
   // WARNING:
   // Please make sure that you've added your new envvar to the list above in
   // alphabetical order. Please do not just append it to the end of the list.
 
 private:
   // Helper function, can be re-used in the other macros
   static bool IsEnvSet(const char* aName) {
-    char* val = PR_GetEnv(aName);
+    const char* val = PR_GetEnv(aName);
     return (val != 0 && *val != '\0');
   }
 
   gfxEnv() {};
   ~gfxEnv() {};
   gfxEnv(const gfxEnv&) = delete;
   gfxEnv& operator=(const gfxEnv&) = delete;
 };