Bug 1278403 - Clean up gfxEnv.h - r=milan draft
authorJeff Gilbert <jgilbert@mozilla.com>
Mon, 06 Jun 2016 15:26:44 -0700
changeset 379684 273dd8850203f6b88fbaf5f15ace8923883e258d
parent 377515 b6f7d0eb61b1878d3d906bd231edf225463ece3f
child 379685 41e857f5bc26323ba5f298694ce3bed72b486f3c
push id21022
push userbmo:jgilbert@mozilla.com
push dateThu, 16 Jun 2016 15:24:56 +0000
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
@@ -86,17 +86,17 @@ public:
   DECL_GFX_ENV_LIVE("MOZ_GL_DEBUG_ABORT_ON_ERROR", GlDebugAbortOnError);
 
   // Count GL extensions
   DECL_GFX_ENV_ONCE("MOZ_GL_DUMP_EXTS", GlDumpExtensions);
 
   // Very noisy GLContext and GLContextProviderELG
   DECL_GFX_ENV_ONCE("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_LIVE("MOZ_GLX_DEBUG", GlxDebug);
 
   // Use X compositing
   DECL_GFX_ENV_LIVE("MOZ_LAYERS_ENABLE_XLIB_SURFACES", LayersEnableXlibSurfaces);
 
   // GL compositing on Windows
   DECL_GFX_ENV_LIVE("MOZ_LAYERS_PREFER_EGL", LayersPreferEGL);
 
@@ -108,17 +108,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;
 };