Fix Windows build breakage in http://code.google.com/p/skia/source/detail?r=2925
TBR=reed
Review URL: http://codereview.appspot.com/5500087
git-svn-id: http://skia.googlecode.com/svn/trunk@2927 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index 746314b..a1534e5 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -1,4 +1,3 @@
-
/*
* Copyright 2011 Google Inc.
*
@@ -97,7 +96,7 @@
static const char* gPrefFileName = "sampleapp_prefs.txt";
-static bool readTiTleFromPrefs(SkString* title) {
+static bool readTitleFromPrefs(SkString* title) {
SkFILEStream stream(gPrefFileName);
if (!stream.isValid()) {
return false;
@@ -119,7 +118,7 @@
return false;
}
-static bool writeTitleToPrefs(const char* title) {
+static void writeTitleToPrefs(const char* title) {
SkFILEWStream stream(gPrefFileName);
SkString data;
data.printf("curr-slide-title = \"%s\"\n", title);
@@ -711,7 +710,7 @@
}
} else {
SkString title;
- if (readTiTleFromPrefs(&title)) {
+ if (readTitleFromPrefs(&title)) {
fCurrIndex = findByTitle(title.c_str());
}
}
@@ -759,6 +758,8 @@
return i;
}
}
+ // TODO(reed): what should this return if the title is not found?
+ return 0;
}
static SkBitmap capture_bitmap(SkCanvas* canvas) {