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

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

Issue 1248153004: Merge to XFA: FX_BOOL combo patch. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: CTTFontDesc::ReleaseFace() mismatch Created 5 years, 5 months 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 | « fpdfsdk/src/fpdf_transformpage.cpp ('k') | public/fpdf_sysfontinfo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/src/javascript/PublicMethods.cpp
diff --git a/fpdfsdk/src/javascript/PublicMethods.cpp b/fpdfsdk/src/javascript/PublicMethods.cpp
index c5cc84cc2311c56ddd33f9ef4aa69854630ea166..abb95f052d9afe4e5507265c88a474f20002eb07 100644
--- a/fpdfsdk/src/javascript/PublicMethods.cpp
+++ b/fpdfsdk/src/javascript/PublicMethods.cpp
@@ -1066,13 +1066,13 @@ FX_BOOL CJS_PublicMethods::AFNumber_Format(IFXJS_Context* cc, const CJS_Paramete
dValue += DOUBLE_CORRECT;//
int iDec2;
- FX_BOOL bNagative = FALSE;
+ int iNegative = 0;
- strValue = fcvt(dValue,iDec,&iDec2,&bNagative);
+ strValue = fcvt(dValue, iDec, &iDec2, &iNegative);
if (strValue.IsEmpty())
{
dValue = 0;
- strValue = fcvt(dValue,iDec,&iDec2,&bNagative);
+ strValue = fcvt(dValue, iDec, &iDec2, &iNegative);
if (strValue.IsEmpty())
{
strValue = "0";
@@ -1125,9 +1125,9 @@ FX_BOOL CJS_PublicMethods::AFNumber_Format(IFXJS_Context* cc, const CJS_Paramete
else
cSeperator = '.';
- int iDecPositive,iDecNagative;
+ int iDecPositive,iDecNegative;
iDecPositive = iDec2;
- iDecNagative = iDec2;
+ iDecNegative = iDec2;
for (iDecPositive = iDec2 -3; iDecPositive > 0;iDecPositive -= 3)
{
@@ -1151,7 +1151,7 @@ FX_BOOL CJS_PublicMethods::AFNumber_Format(IFXJS_Context* cc, const CJS_Paramete
/////////////////////////////////////////////////////////////////////////
//for processing negative style
- if (bNagative)
+ if (iNegative)
{
if (iNegStyle == 0)
{
@@ -1394,12 +1394,12 @@ FX_BOOL CJS_PublicMethods::AFPercent_Format(IFXJS_Context* cc, const CJS_Paramet
dValue += DOUBLE_CORRECT;//УÕý
int iDec2;
- FX_BOOL bNagative = FALSE;
- strValue = fcvt(dValue,iDec,&iDec2,&bNagative);
+ int iNegative = 0;
+ strValue = fcvt(dValue, iDec, &iDec2, &iNegative);
if (strValue.IsEmpty())
{
dValue = 0;
- strValue = fcvt(dValue,iDec,&iDec2,&bNagative);
+ strValue = fcvt(dValue, iDec, &iDec2, &iNegative);
}
if (iDec2 < 0)
@@ -1446,9 +1446,9 @@ FX_BOOL CJS_PublicMethods::AFPercent_Format(IFXJS_Context* cc, const CJS_Paramet
else
cSeperator = '.';
- int iDecPositive,iDecNagative;
+ int iDecPositive,iDecNegative;
iDecPositive = iDec2;
- iDecNagative = iDec2;
+ iDecNegative = iDec2;
for (iDecPositive = iDec2 -3; iDecPositive > 0; iDecPositive -= 3)
{
@@ -1457,8 +1457,8 @@ FX_BOOL CJS_PublicMethods::AFPercent_Format(IFXJS_Context* cc, const CJS_Paramet
}
}
////////////////////////////////////////////////////////////////////
- //nagative mark
- if(bNagative)
+ //negative mark
+ if (iNegative)
strValue = "-" + strValue;
strValue += "%";
Value = CFX_WideString::FromLocal(strValue);
« no previous file with comments | « fpdfsdk/src/fpdf_transformpage.cpp ('k') | public/fpdf_sysfontinfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698