summaryrefslogtreecommitdiffstats
path: root/googletest/include/gtest/gtest-printers.h
diff options
context:
space:
mode:
authorstkhapugin@chromium.org <stkhapugin@chromium.org>2017-09-19 10:44:52 (GMT)
committerstkhapugin@chromium.org <stkhapugin@chromium.org>2017-09-19 10:44:52 (GMT)
commitcf512a099cd59a05ff981db778d08ab3cf143969 (patch)
tree74e845355023cd2371395b9728fba8a45d12435b /googletest/include/gtest/gtest-printers.h
parent6508a66622b458b43184ee814c714d76d5976f75 (diff)
downloadgoogletest-cf512a099cd59a05ff981db778d08ab3cf143969.zip
googletest-cf512a099cd59a05ff981db778d08ab3cf143969.tar.gz
googletest-cf512a099cd59a05ff981db778d08ab3cf143969.tar.bz2
Swap reinterpret_cast for static_cast
Swap reinterpret_cast for static_cast
Diffstat (limited to 'googletest/include/gtest/gtest-printers.h')
-rw-r--r--googletest/include/gtest/gtest-printers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/include/gtest/gtest-printers.h b/googletest/include/gtest/gtest-printers.h
index 129fc68..282a2da 100644
--- a/googletest/include/gtest/gtest-printers.h
+++ b/googletest/include/gtest/gtest-printers.h
@@ -137,8 +137,8 @@ class TypeWithoutFormatter {
public:
// This default version is called when kTypeKind is kOtherType.
static void PrintValue(const T& value, ::std::ostream* os) {
- PrintBytesInObjectTo(reinterpret_cast<const unsigned char*>(
- reinterpret_cast<const void *>(&value)),
+ PrintBytesInObjectTo(static_cast<const unsigned char*>(
+ reinterpret_cast<const void *>(&value)),
sizeof(value), os);
}
};