aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SamplePolyToPoly.cpp
diff options
context:
space:
mode:
authorGravatar tfarina@chromium.org <tfarina@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-30 11:30:01 +0000
committerGravatar tfarina@chromium.org <tfarina@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-30 11:30:01 +0000
commit45369a33bb78b6b76fafd63b1334151368dc9e2a (patch)
tree0b255676bb9fd20e072697e989c7014d83507e36 /samplecode/SamplePolyToPoly.cpp
parente8d29f5058153d56423a9d44f278b15e0cc88c9a (diff)
samplecode: Avoid temporary variables of SkString type.
Just like most of the other samples, just pass the name of the sample directly. R=epoger@google.com Review URL: https://codereview.appspot.com/6572047 git-svn-id: http://skia.googlecode.com/svn/trunk@5743 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SamplePolyToPoly.cpp')
-rw-r--r--samplecode/SamplePolyToPoly.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/samplecode/SamplePolyToPoly.cpp b/samplecode/SamplePolyToPoly.cpp
index da527c2e01..88adae9d97 100644
--- a/samplecode/SamplePolyToPoly.cpp
+++ b/samplecode/SamplePolyToPoly.cpp
@@ -77,8 +77,7 @@ protected:
// overrides from SkEventSink
virtual bool onQuery(SkEvent* evt) {
if (SampleCode::TitleQ(*evt)) {
- SkString str("PolyToPolyView");
- SampleCode::TitleR(evt, str.c_str());
+ SampleCode::TitleR(evt, "PolyToPolyView");
return true;
}
return this->INHERITED::onQuery(evt);