Remove using-declaration for absl::bit_cast. Using-declarations into absl:: are discouraged, and this removal disambiguates which overload of absl::bit_cast is actually selected, and thus helps us trace the remaining uses of the "bad" overload.
PiperOrigin-RevId: 325845404
Change-Id: I6441a0be8ef048ca8af544047b36b1eefac94b85
diff --git a/tensorflow/core/lib/jpeg/jpeg_mem_unittest.cc b/tensorflow/core/lib/jpeg/jpeg_mem_unittest.cc
index ac8f657..4bbe74c 100644
--- a/tensorflow/core/lib/jpeg/jpeg_mem_unittest.cc
+++ b/tensorflow/core/lib/jpeg/jpeg_mem_unittest.cc
@@ -34,7 +34,6 @@
namespace jpeg {
namespace {
-using absl::bit_cast;
const char kTestData[] = "tensorflow/core/lib/jpeg/testdata/";
int ComputeSumAbsoluteDifference(const uint8* a, const uint8* b, int width,
@@ -60,7 +59,7 @@
string jpeg;
ReadFileToStringOrDie(env, jpegfile, &jpeg);
const int fsize = jpeg.size();
- const uint8* const temp = bit_cast<const uint8*>(jpeg.data());
+ const uint8* const temp = absl::bit_cast<const uint8*>(jpeg.data());
// Try partial decoding (half of the data)
int w, h, c;
@@ -102,7 +101,7 @@
string jpeg;
ReadFileToStringOrDie(env, jpegfile, &jpeg);
const int fsize = jpeg.size();
- auto temp = bit_cast<const uint8*>(jpeg.data());
+ const auto* temp = absl::bit_cast<const uint8*>(jpeg.data());
// Decode the whole image.
std::unique_ptr<uint8[]> imgdata1;
@@ -225,7 +224,7 @@
string jpeg;
ReadFileToStringOrDie(env, data_path + "jpeg_merge_test1.jpg", &jpeg);
const int fsize = jpeg.size();
- auto temp = bit_cast<const uint8*>(jpeg.data());
+ const auto* temp = absl::bit_cast<const uint8*>(jpeg.data());
int w, h, c;
ASSERT_TRUE(GetImageInfo(temp, fsize, &w, &h, &c));
@@ -263,7 +262,7 @@
string jpeg;
ReadFileToStringOrDie(env, data_path + "jpeg_merge_test1.jpg", &jpeg);
const int fsize = jpeg.size();
- auto temp = bit_cast<const uint8*>(jpeg.data());
+ const auto* temp = absl::bit_cast<const uint8*>(jpeg.data());
int w, h, c;
ASSERT_TRUE(GetImageInfo(temp, fsize, &w, &h, &c));