mirror of
https://github.com/google/googletest.git
synced 2024-12-27 02:01:25 +08:00
Swap reinterpret_cast for static_cast
Swap reinterpret_cast for static_cast
This commit is contained in:
parent
6508a66622
commit
cf512a099c
@ -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);
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user