@@ -116,8 +116,8 @@ NS_IMETHODIMP nsReadConfig::Observe(nsISupports *aSubject, const char *aTopic, c
116116nsresult nsReadConfig::readConfigFile ()
117117{
118118 nsresult rv = NS_OK;
119- nsXPIDLCString lockFileName;
120- nsXPIDLCString lockVendor;
119+ nsCString lockFileName;
120+ nsCString lockVendor;
121121 uint32_t fileNameLen = 0 ;
122122
123123 nsCOMPtr<nsIPrefBranch> defaultPrefBranch;
@@ -193,18 +193,18 @@ nsresult nsReadConfig::readConfigFile()
193193 // If vendor is not nullptr, do this check
194194 if (NS_SUCCEEDED(rv)) {
195195
196- fileNameLen = strlen (lockFileName);
196+ fileNameLen = strlen (lockFileName. get () );
197197
198198 // lockVendor and lockFileName should be the same with the addtion of
199199 // .cfg to the filename by checking this post reading of the cfg file
200200 // this value can be set within the cfg file adding a level of security.
201201
202- if (PL_strncmp (lockFileName, lockVendor, fileNameLen - 4 ) != 0 )
202+ if (PL_strncmp (lockFileName. get () , lockVendor. get () , fileNameLen - 4 ) != 0 )
203203 return NS_ERROR_FAILURE;
204204 }
205205
206206 // get the value of the autoconfig url
207- nsXPIDLCString urlName;
207+ nsCString urlName;
208208 rv = prefBranch->GetCharPref (" autoadmin.global_config_url" ,
209209 getter_Copies (urlName));
210210 if (NS_SUCCEEDED(rv) && !urlName.IsEmpty ()) {
@@ -214,7 +214,7 @@ nsresult nsReadConfig::readConfigFile()
214214 if (NS_FAILED(rv))
215215 return NS_ERROR_OUT_OF_MEMORY;
216216
217- rv = mAutoConfig ->SetConfigURL (urlName);
217+ rv = mAutoConfig ->SetConfigURL (urlName. get () );
218218 if (NS_FAILED(rv))
219219 return NS_ERROR_FAILURE;
220220
0 commit comments