From 5449e2f0df37abaaac79a1c01dc388fb39f8a004 Mon Sep 17 00:00:00 2001 From: Alexandra Latysheva Date: Sun, 4 Oct 2020 17:58:21 +0000 Subject: [PATCH] renamed g_in_dir in local variable style --- oss-internship-2020/libtiff/test/helper.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/oss-internship-2020/libtiff/test/helper.cc b/oss-internship-2020/libtiff/test/helper.cc index 3277f17..b39d274 100644 --- a/oss-internship-2020/libtiff/test/helper.cc +++ b/oss-internship-2020/libtiff/test/helper.cc @@ -14,7 +14,7 @@ #include "helper.h" -std::string GetImagesDir() { +std::string GetImagesFolder() { std::string cwd = sandbox2::file_util::fileops::GetCWD(); auto find = cwd.rfind("/build"); if (find == std::string::npos) { @@ -28,9 +28,9 @@ std::string GetImagesDir() { } std::string GetFilePath(const std::string& filename) { - static std::string* g_in_dir = nullptr; - if (!g_in_dir) { - g_in_dir = new std::string(GetImagesDir()); + static std::string* images_folder_path = nullptr; + if (!images_folder_path) { + images_folder_path = new std::string(GetImagesFolder()); } - return sandbox2::file::JoinPath(*g_in_dir, filename); + return sandbox2::file::JoinPath(*images_folder_path, filename); }