summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec/ccodec_jbig2module.h
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2018-05-09 23:25:53 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-09 23:25:53 +0000
commitad18d2fba9dd5833a2e34bfe90c8e3c9a485e805 (patch)
tree2c5b678637ad9324e6fcd8414fbc883ac07ad0c1 /core/fxcodec/codec/ccodec_jbig2module.h
parent3774c7a452886b9c8beeb5fa1b54a34611551180 (diff)
downloadpdfium-chromium/3426.tar.xz
Use enum class instead of int in CJBig2_Contextchromium/3426
This CL changes CJBig2_Context return methods as follows: * Internal methods return JBig2_Result instead of int. * Public methods return a bool (for success/failure) instead of int. In a followup, several of the enum class values may be merged together since they are not all needed. Change-Id: Ifdab83b8037262370cd7c4a80e94aa94d59aa589 Reviewed-on: https://pdfium-review.googlesource.com/32310 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_jbig2module.h')
-rw-r--r--core/fxcodec/codec/ccodec_jbig2module.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fxcodec/codec/ccodec_jbig2module.h b/core/fxcodec/codec/ccodec_jbig2module.h
index 306b079846..534c0a3ab6 100644
--- a/core/fxcodec/codec/ccodec_jbig2module.h
+++ b/core/fxcodec/codec/ccodec_jbig2module.h
@@ -51,7 +51,8 @@ class CCodec_Jbig2Module {
PauseIndicatorIface* pPause);
private:
- FXCODEC_STATUS Decode(CCodec_Jbig2Context* pJbig2Context, int result);
+ FXCODEC_STATUS Decode(CCodec_Jbig2Context* pJbig2Context,
+ bool decode_success);
};
#endif // CORE_FXCODEC_CODEC_CCODEC_JBIG2MODULE_H_