Bug 616426 - fix paramater type. r=blassey. a=me
authorDoug Turner <dougt@dougt.org>
Fri, 11 Mar 2011 15:41:32 -0800
changeset 63394 cbe7235114f4264a2b673cb64f4aa08f0c7c980e
parent 63393 79e153479dc87e04765ea3eaac246920533d07d2
child 63395 021b90fe4b26928ab64445785a7342a7a57884dc
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey, me
bugs616426
milestone2.0b13pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 616426 - fix paramater type. r=blassey. a=me
gfx/thebes/gfxAndroidPlatform.cpp
gfx/thebes/gfxAndroidPlatform.h
--- a/gfx/thebes/gfxAndroidPlatform.cpp
+++ b/gfx/thebes/gfxAndroidPlatform.cpp
@@ -413,17 +413,17 @@ gfxAndroidPlatform::AppendFacesFromFontF
         }
         FT_Done_Face(dummy);
         if (aFontCache && 0 == stat_ret)
             aFontCache->CacheFileInfo(fileName, faceList, timestamp, filesize, indexList);
     }
 }
 
 void
-gfxAndroidPlatform::FindFontsInDirectory(nsCString aFontsDir,
+gfxAndroidPlatform::FindFontsInDirectory(const nsCString& aFontsDir,
                                          FontNameCache* aFontCache)
 {
     DIR *d = opendir(aFontsDir.get());
     struct dirent *ent = NULL;
     while(d && (ent = readdir(d)) != NULL) {
         int namelen = strlen(ent->d_name);
         if (namelen > 4 &&
             strcasecmp(ent->d_name + namelen - 4, ".ttf") == 0)
--- a/gfx/thebes/gfxAndroidPlatform.h
+++ b/gfx/thebes/gfxAndroidPlatform.h
@@ -102,17 +102,17 @@ public:
     void SetPrefFontEntries(const nsCString& aLangGroup, nsTArray<nsRefPtr<gfxFontEntry> >& aFontEntryList);
 
     FT_Library GetFTLibrary();
 
     virtual gfxImageFormat GetOffscreenFormat() { return gfxASurface::ImageFormatRGB16_565; }
 
 protected:
     void AppendFacesFromFontFile(const char *aFileName, FontNameCache* aFontCache, InfallibleTArray<FontListEntry>* retValue);
-    void FindFontsInDirectory(nsCString aFontsDir, FontNameCache* aFontCache);
+    void FindFontsInDirectory(const nsCString& aFontsDir, FontNameCache* aFontCache);
 
     typedef nsDataHashtable<nsStringHashKey, nsRefPtr<FontFamily> > FontTable;
 
     FontTable mFonts;
     FontTable mFontAliases;
     FontTable mFontSubstitutes;
     InfallibleTArray<FontListEntry> mFontList;