Bug 813818 - just return nsString by value in GfxInfoBase getters, not perf critical, not worth doing fancy things - r=joe

This commit is contained in:
Benoit Jacob 2012-11-22 13:53:11 -05:00
Родитель 52884c55ce
Коммит 60dd91833f
3 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

@ -393,22 +393,22 @@ NS_IMETHODIMP GfxInfo::SpoofOSVersion(uint32_t aVersion)
#endif #endif
const nsAString& GfxInfo::Model() const nsString GfxInfo::Model() const
{ {
return mModel; return mModel;
} }
const nsAString& GfxInfo::Hardware() const nsString GfxInfo::Hardware() const
{ {
return mHardware; return mHardware;
} }
const nsAString& GfxInfo::Product() const nsString GfxInfo::Product() const
{ {
return mProduct; return mProduct;
} }
const nsAString& GfxInfo::Manufacturer() const nsString GfxInfo::Manufacturer() const
{ {
return mManufacturer; return mManufacturer;
} }

Просмотреть файл

@ -48,10 +48,10 @@ public:
void EnsureInitializedFromGfxInfoData(); void EnsureInitializedFromGfxInfoData();
virtual const nsAString& Model() const; virtual nsString Model() const;
virtual const nsAString& Hardware() const; virtual nsString Hardware() const;
virtual const nsAString& Product() const; virtual nsString Product() const;
virtual const nsAString& Manufacturer() const; virtual nsString Manufacturer() const;
#ifdef DEBUG #ifdef DEBUG
NS_DECL_ISUPPORTS_INHERITED NS_DECL_ISUPPORTS_INHERITED

Просмотреть файл

@ -68,10 +68,10 @@ public:
static nsTArray<GfxDriverInfo>* mDriverInfo; static nsTArray<GfxDriverInfo>* mDriverInfo;
static bool mDriverInfoObserverInitialized; static bool mDriverInfoObserverInitialized;
virtual const nsAString& Model() const { return EmptyString(); } virtual nsString Model() const { return EmptyString(); }
virtual const nsAString& Hardware() const { return EmptyString(); } virtual nsString Hardware() const { return EmptyString(); }
virtual const nsAString& Product() const { return EmptyString(); } virtual nsString Product() const { return EmptyString(); }
virtual const nsAString& Manufacturer() const { return EmptyString(); } virtual nsString Manufacturer() const { return EmptyString(); }
virtual uint32_t OperatingSystemVersion() const { return 0; } virtual uint32_t OperatingSystemVersion() const { return 0; }
protected: protected: