diff --git a/tools/viewer/Slide.h b/tools/viewer/Slide.h index bdd8e5e8b2..0739bb2351 100644 --- a/tools/viewer/Slide.h +++ b/tools/viewer/Slide.h @@ -34,7 +34,7 @@ public: virtual bool onGetControls(SkMetaData*) { return false; } virtual void onSetControls(const SkMetaData&) {} - SkString getName() { return fName; } + const SkString& getName() { return fName; } protected: