Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Unified Diff: fpdfsdk/src/javascript/app.cpp

Issue 1508133003: Make app.cpp match XFA (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/src/javascript/app.cpp
diff --git a/fpdfsdk/src/javascript/app.cpp b/fpdfsdk/src/javascript/app.cpp
index 205673e6d5a41d9444b71ef31fb2a3bc3ab625a3..70ce7710906084f0fd9cf74037d1b4650c82a299 100644
--- a/fpdfsdk/src/javascript/app.cpp
+++ b/fpdfsdk/src/javascript/app.cpp
@@ -196,7 +196,6 @@ FX_BOOL app::viewerVersion(IJS_Context* cc,
CFX_WideString& sError) {
if (!vp.IsGetting())
return FALSE;
-
vp << JS_NUM_VIEWERVERSION;
return TRUE;
}
@@ -204,23 +203,19 @@ FX_BOOL app::viewerVersion(IJS_Context* cc,
FX_BOOL app::platform(IJS_Context* cc,
CJS_PropValue& vp,
CFX_WideString& sError) {
- if (vp.IsGetting()) {
- vp << JS_STR_PLATFORM;
- return TRUE;
- }
-
- return FALSE;
+ if (!vp.IsGetting())
+ return FALSE;
+ vp << JS_STR_PLATFORM;
+ return TRUE;
}
FX_BOOL app::language(IJS_Context* cc,
CJS_PropValue& vp,
CFX_WideString& sError) {
- if (vp.IsGetting()) {
- vp << JS_STR_LANGUANGE;
- return TRUE;
- }
-
- return FALSE;
+ if (!vp.IsGetting())
+ return FALSE;
+ vp << JS_STR_LANGUANGE;
+ return TRUE;
}
// creates a new fdf object that contains no data
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698