[code health] Declare one variable per line, part 4
Change-Id: I6a75608753ae3448502c5c87948d9ed9b4335c1f
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/80473
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fxge/skia/fx_skia_device_embeddertest.cpp b/core/fxge/skia/fx_skia_device_embeddertest.cpp
index 66a3f60..1f94483 100644
--- a/core/fxge/skia/fx_skia_device_embeddertest.cpp
+++ b/core/fxge/skia/fx_skia_device_embeddertest.cpp
@@ -46,7 +46,8 @@
CFX_Font font;
float fontSize = 1;
- CFX_PathData clipPath, clipPath2;
+ CFX_PathData clipPath;
+ CFX_PathData clipPath2;
clipPath.AppendRect(0, 0, 3, 1);
clipPath2.AppendRect(0, 0, 2, 1);
CFX_Matrix clipMatrix;
diff --git a/fpdfsdk/cpdfsdk_appstream.cpp b/fpdfsdk/cpdfsdk_appstream.cpp
index 1959617..c56816b 100644
--- a/fpdfsdk/cpdfsdk_appstream.cpp
+++ b/fpdfsdk/cpdfsdk_appstream.cpp
@@ -1334,7 +1334,9 @@
void CPDFSDK_AppStream::SetAsCheckBox() {
CPDF_FormControl* pControl = widget_->GetFormControl();
- CFX_Color crBackground, crBorder, crText;
+ CFX_Color crBackground;
+ CFX_Color crBorder;
+ CFX_Color crText;
int iColorType;
float fc[4];
@@ -1348,8 +1350,8 @@
float fBorderWidth = static_cast<float>(widget_->GetBorderWidth());
CPWL_Dash dsBorder(3, 0, 0);
- CFX_Color crLeftTop, crRightBottom;
-
+ CFX_Color crLeftTop;
+ CFX_Color crRightBottom;
BorderStyle nBorderStyle = widget_->GetBorderStyle();
switch (nBorderStyle) {
case BorderStyle::kDash: