variable name change

This commit is contained in:
valeski%netscape.com 1999-06-01 22:03:47 +00:00
parent 0b3baf7402
commit ae0a59dca1
2 changed files with 11 additions and 11 deletions

View File

@ -228,31 +228,31 @@ nsNetService::HasActiveConnections()
NS_IMETHODIMP
nsNetService::GetAppCodeName(nsString2& aAppCodeName) {
aAppCodeName.SetString(XP_AppCodeName);
aAppCodeName.SetString(mAppCodeName);
return NS_OK;
}
NS_IMETHODIMP
nsNetService::GetAppVersion(nsString2& aAppVersion) {
aAppVersion.SetString(XP_AppVersion);
aAppVersion.SetString(mAppVersion);
return NS_OK;
}
NS_IMETHODIMP
nsNetService::GetAppName(nsString2& aAppName) {
aAppName.SetString(XP_AppName);
aAppName.SetString(mAppName);
return NS_OK;
}
NS_IMETHODIMP
nsNetService::GetLanguage(nsString2& aLanguage) {
aLanguage.SetString(XP_AppLanguage);
aLanguage.SetString(mAppLanguage);
return NS_OK;
}
NS_IMETHODIMP
nsNetService::GetPlatform(nsString2& aPlatform) {
aPlatform.SetString(XP_AppPlatform);
aPlatform.SetString(mAppPlatform);
return NS_OK;
}
@ -260,7 +260,7 @@ NS_IMETHODIMP
nsNetService::GetUserAgent(nsString2& aUA) {
// XXX this should load the http module and ask for the user agent string from it.
char buf[64];
PR_snprintf(buf, 64, "%.100s/%.90s", XP_AppCodeName.GetBuffer(), XP_AppVersion.GetBuffer());
PR_snprintf(buf, 64, "%.100s/%.90s", mAppCodeName.GetBuffer(), mAppVersion.GetBuffer());
aUA.SetString(buf);
return NS_OK;
}

View File

@ -55,11 +55,11 @@ public:
nsresult Init();
protected:
nsString2 XP_AppName;
nsString2 XP_AppCodeName;
nsString2 XP_AppVersion;
nsString2 XP_AppLanguage;
nsString2 XP_AppPlatform;
nsString2 mAppName;
nsString2 mAppCodeName;
nsString2 mAppVersion;
nsString2 mAppLanguage;
nsString2 mAppPlatform;
};
#endif // nsNetService_h__