aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SampleApp.cpp
diff options
context:
space:
mode:
authormike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-12-28 20:02:10 +0000
committermike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-12-28 20:02:10 +0000
commitdd52caaa093845c7c5157be78d94feb72f9cb155 (patch)
treee32861ad0720c40c363af548d4368a374d7326fa /samplecode/SampleApp.cpp
parentabfa8d137b84a043bea2a27d16e379fa5f96a7ff (diff)
return -1 if we failed to find by title
git-svn-id: http://skia.googlecode.com/svn/trunk@2931 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleApp.cpp')
-rw-r--r--samplecode/SampleApp.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index a1534e53fe..d3d2aa708a 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -758,8 +758,7 @@ int SampleWindow::findByTitle(const char title[]) {
return i;
}
}
- // TODO(reed): what should this return if the title is not found?
- return 0;
+ return -1;
}
static SkBitmap capture_bitmap(SkCanvas* canvas) {