diff options
-rw-r--r-- | samplecode/SamplePatch.cpp | 6 | ||||
-rw-r--r-- | samplecode/SamplePolyToPoly.cpp | 3 | ||||
-rw-r--r-- | samplecode/SampleTextAlpha.cpp | 3 | ||||
-rw-r--r-- | samplecode/SampleTextBox.cpp | 3 | ||||
-rw-r--r-- | samplecode/SampleVertices.cpp | 6 |
5 files changed, 7 insertions, 14 deletions
diff --git a/samplecode/SamplePatch.cpp b/samplecode/SamplePatch.cpp index a58999a2c9..90aaf4cd3e 100644 --- a/samplecode/SamplePatch.cpp +++ b/samplecode/SamplePatch.cpp @@ -259,10 +259,8 @@ public: protected: // overrides from SkEventSink virtual bool onQuery(SkEvent* evt) { - if (SampleCode::TitleQ(*evt)) - { - SkString str("Patch"); - SampleCode::TitleR(evt, str.c_str()); + if (SampleCode::TitleQ(*evt)) { + SampleCode::TitleR(evt, "Patch"); return true; } return this->INHERITED::onQuery(evt); 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); diff --git a/samplecode/SampleTextAlpha.cpp b/samplecode/SampleTextAlpha.cpp index 6333588b54..ac24f08354 100644 --- a/samplecode/SampleTextAlpha.cpp +++ b/samplecode/SampleTextAlpha.cpp @@ -53,8 +53,7 @@ protected: // overrides from SkEventSink virtual bool onQuery(SkEvent* evt) { if (SampleCode::TitleQ(*evt)) { - SkString str("TextAlpha"); - SampleCode::TitleR(evt, str.c_str()); + SampleCode::TitleR(evt, "TextAlpha"); return true; } return this->INHERITED::onQuery(evt); diff --git a/samplecode/SampleTextBox.cpp b/samplecode/SampleTextBox.cpp index d8612dbb20..a021dbd6fb 100644 --- a/samplecode/SampleTextBox.cpp +++ b/samplecode/SampleTextBox.cpp @@ -63,8 +63,7 @@ protected: // overrides from SkEventSink virtual bool onQuery(SkEvent* evt) { if (SampleCode::TitleQ(*evt)) { - SkString str("TextBox"); - SampleCode::TitleR(evt, str.c_str()); + SampleCode::TitleR(evt, "TextBox"); return true; } return this->INHERITED::onQuery(evt); diff --git a/samplecode/SampleVertices.cpp b/samplecode/SampleVertices.cpp index d6dd7eaece..bc02256359 100644 --- a/samplecode/SampleVertices.cpp +++ b/samplecode/SampleVertices.cpp @@ -79,10 +79,8 @@ public: protected: // overrides from SkEventSink virtual bool onQuery(SkEvent* evt) { - if (SampleCode::TitleQ(*evt)) - { - SkString str("Vertices"); - SampleCode::TitleR(evt, str.c_str()); + if (SampleCode::TitleQ(*evt)) { + SampleCode::TitleR(evt, "Vertices"); return true; } return this->INHERITED::onQuery(evt); |