Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
cf512a09
Commit
cf512a09
authored
Sep 19, 2017
by
stkhapugin@chromium.org
Browse files
Swap reinterpret_cast for static_cast
Swap reinterpret_cast for static_cast
parent
6508a666
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
googletest/include/gtest/gtest-printers.h
googletest/include/gtest/gtest-printers.h
+2
-2
No files found.
googletest/include/gtest/gtest-printers.h
View file @
cf512a09
...
...
@@ -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
);
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment