Trivial const correctness followup to bug 420373 r=bsmedberg a=beltzner
authorneil@parkwaycc.co.uk
Tue, 01 Apr 2008 07:13:27 -0700
changeset 13796 42eed3c1e7a0be08d0f04ab2a566488b60773dcc
parent 13795 65d0b02f1802866059bb9aec6cea224e34372ce0
child 13797 dda1f9f44afceffdf04d449df73ef7272041400c
push id5
push userjorendorff@mozilla.com
push dateWed, 02 Apr 2008 23:04:51 +0000
treeherdermozilla-central@5cb5ebda3312 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg, beltzner
bugs420373
milestone1.9pre
Trivial const correctness followup to bug 420373 r=bsmedberg a=beltzner
xpcom/glue/nsGREGlue.cpp
--- a/xpcom/glue/nsGREGlue.cpp
+++ b/xpcom/glue/nsGREGlue.cpp
@@ -166,17 +166,17 @@ GRE_GetGREPathWithProperties(const GREVe
   for (PRUint32 i=0; i<propertiesLength; i++) {
     allProperties[i].property = properties[i].property;
     allProperties[i].value    = properties[i].value;
   }
   allProperties[propertiesLength].property = kExtraProperty.property;
   allProperties[propertiesLength].value    = kExtraProperty.value;
   PRUint32 allPropertiesLength = propertiesLength + 1;
 #else
-  GREProperty *allProperties = properties;
+  const GREProperty *allProperties = properties;
   PRUint32 allPropertiesLength = propertiesLength;
 #endif
 
   // if GRE_HOME is in the environment, use that GRE
   const char* env = getenv("GRE_HOME");
   if (env && *env) {
     char p[MAXPATHLEN];
     snprintf(p, sizeof(p), "%s" XPCOM_FILE_PATH_SEPARATOR XPCOM_DLL, env);