| Index: src/core/SkDocument.cpp
|
| diff --git a/src/core/SkDocument.cpp b/src/core/SkDocument.cpp
|
| index fa25e44f8645bb0c99d89015691bd42ce993d0f1..29db7f05e1fea68e30e1953511d79146af3a23a5 100644
|
| --- a/src/core/SkDocument.cpp
|
| +++ b/src/core/SkDocument.cpp
|
| @@ -58,12 +58,12 @@ void SkDocument::endPage() {
|
| }
|
| }
|
|
|
| -bool SkDocument::close() {
|
| +void SkDocument::close() {
|
| for (;;) {
|
| switch (fState) {
|
| case kBetweenPages_State: {
|
| fState = kClosed_State;
|
| - bool success = this->onClose(fStream);
|
| + this->onClose(fStream);
|
|
|
| if (fDoneProc) {
|
| fDoneProc(fStream, false);
|
| @@ -71,13 +71,13 @@ bool SkDocument::close() {
|
| // we don't own the stream, but we mark it nullptr since we can
|
| // no longer write to it.
|
| fStream = nullptr;
|
| - return success;
|
| + return;
|
| }
|
| case kInPage_State:
|
| this->endPage();
|
| break;
|
| case kClosed_State:
|
| - return false;
|
| + return;
|
| }
|
| }
|
| }
|
|
|