Index: gm/etc1bitmap.cpp |
diff --git a/gm/etc1bitmap.cpp b/gm/etc1bitmap.cpp |
index cdf8617a35627e317feb96de0ea8e09148265af0..ce0aa7dbad6e3018ff58b404635c88d5383b6b48 100644 |
--- a/gm/etc1bitmap.cpp |
+++ b/gm/etc1bitmap.cpp |
@@ -93,8 +93,7 @@ protected: |
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
SkBitmap bm; |
- SkString filename = SkOSPath::SkPathJoin( |
- INHERITED::gResourcePath.c_str(), "mandrill_128."); |
+ SkString filename = SkOSPath::SkPathJoin(INHERITED::gResourcePath, "mandrill_128."); |
filename.append(this->fileExtension()); |
SkAutoTUnref<SkData> fileData(SkData::NewFromFileName(filename.c_str())); |
@@ -169,8 +168,7 @@ protected: |
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
SkBitmap bm; |
- SkString filename = SkOSPath::SkPathJoin( |
- INHERITED::gResourcePath.c_str(), "mandrill_128.pkm"); |
+ SkString filename = SkOSPath::SkPathJoin(INHERITED::gResourcePath, "mandrill_128.pkm"); |
SkAutoDataUnref fileData(SkData::NewFromFileName(filename.c_str())); |
if (NULL == fileData) { |