Declare all vars on separate lines

This commit is contained in:
Alexandra Latysheva 2020-10-11 09:44:02 +00:00
parent d190abf2e2
commit 69fbe39293
2 changed files with 4 additions and 2 deletions

View File

@ -163,7 +163,8 @@ absl::Status LibTIFFMain(const std::string& srcfile) {
bool pixel_status = true; bool pixel_status = true;
bool cluster_status = true; bool cluster_status = true;
// initialize sapi vars after constructing TiffSapiSandbox // initialize sapi vars after constructing TiffSapiSandbox
sapi::v::UShort h, v; sapi::v::UShort h;
sapi::v::UShort v;
absl::StatusOr<TIFF*> status_or_tif; absl::StatusOr<TIFF*> status_or_tif;
absl::StatusOr<int> status_or_int; absl::StatusOr<int> status_or_int;
absl::StatusOr<tmsize_t> status_or_long; absl::StatusOr<tmsize_t> status_or_long;

View File

@ -145,7 +145,8 @@ TEST(SandboxTest, RawDecode) {
TiffSapiSandbox sandbox(srcfile); TiffSapiSandbox sandbox(srcfile);
ASSERT_THAT(sandbox.Init(), IsOk()) << "Couldn't initialize Sandboxed API"; ASSERT_THAT(sandbox.Init(), IsOk()) << "Couldn't initialize Sandboxed API";
sapi::v::UShort h, v; sapi::v::UShort h;
sapi::v::UShort v;
absl::StatusOr<TIFF*> status_or_tif; absl::StatusOr<TIFF*> status_or_tif;
absl::StatusOr<int> status_or_int; absl::StatusOr<int> status_or_int;
absl::StatusOr<tmsize_t> status_or_long; absl::StatusOr<tmsize_t> status_or_long;