зеркало из https://github.com/mozilla/gecko-dev.git
In changeset de02d0483a7f I inadvertently added "const" to the return types of some static functions in this .cpp file. Removing that. r=me, a=me
This commit is contained in:
Родитель
8e2422ebb4
Коммит
d52501ed6e
|
@ -72,7 +72,7 @@ GfxInfo::GetDWriteEnabled(PRBool *aEnabled)
|
||||||
|
|
||||||
/* XXX: GfxInfo doesn't handle multiple GPUs. We should try to do that. Bug #591057 */
|
/* XXX: GfxInfo doesn't handle multiple GPUs. We should try to do that. Bug #591057 */
|
||||||
|
|
||||||
static const nsresult GetKeyValue(const WCHAR* keyLocation, const WCHAR* keyName, nsAString& destString, int type)
|
static nsresult GetKeyValue(const WCHAR* keyLocation, const WCHAR* keyName, nsAString& destString, int type)
|
||||||
{
|
{
|
||||||
HKEY key;
|
HKEY key;
|
||||||
DWORD dwcbData;
|
DWORD dwcbData;
|
||||||
|
@ -142,7 +142,7 @@ static const nsresult GetKeyValue(const WCHAR* keyLocation, const WCHAR* keyName
|
||||||
// The driver ID is a string like PCI\VEN_15AD&DEV_0405&SUBSYS_040515AD, possibly
|
// The driver ID is a string like PCI\VEN_15AD&DEV_0405&SUBSYS_040515AD, possibly
|
||||||
// followed by &REV_XXXX. We uppercase the string, and strip the &REV_ part
|
// followed by &REV_XXXX. We uppercase the string, and strip the &REV_ part
|
||||||
// from it, if found.
|
// from it, if found.
|
||||||
static const void normalizeDriverId(nsString& driverid) {
|
static void normalizeDriverId(nsString& driverid) {
|
||||||
ToUpperCase(driverid);
|
ToUpperCase(driverid);
|
||||||
PRInt32 rev = driverid.Find(NS_LITERAL_CSTRING("&REV_"));
|
PRInt32 rev = driverid.Find(NS_LITERAL_CSTRING("&REV_"));
|
||||||
if (rev != -1) {
|
if (rev != -1) {
|
||||||
|
@ -526,7 +526,7 @@ static const GfxDriverInfo driverInfo[] = {
|
||||||
{ 0, 0, allDevices, 0 }
|
{ 0, 0, allDevices, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const bool
|
static bool
|
||||||
ParseDriverVersion(nsAString& aVersion, PRUint64 *aNumericVersion)
|
ParseDriverVersion(nsAString& aVersion, PRUint64 *aNumericVersion)
|
||||||
{
|
{
|
||||||
int a, b, c, d;
|
int a, b, c, d;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче