summaryrefslogtreecommitdiffstats
path: root/lldb/source/Utility/Event.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-05-23 05:12:11 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-05-23 05:12:11 +0000
commit24374aef1b108028fdc588aa06c66b0d813d112a (patch)
treee6c35889b1b89bad88d9af6c47bc3461f531593c /lldb/source/Utility/Event.cpp
parent3d68a38be8d28e25160ff90ff9f35bee61173186 (diff)
downloadbcm5719-llvm-24374aef1b108028fdc588aa06c66b0d813d112a.tar.gz
bcm5719-llvm-24374aef1b108028fdc588aa06c66b0d813d112a.zip
[Utility] Modernize C-style cats
Replaces the remaining C-style casts with explicit casts in Utility. The motivation is that they are (1) easier to spot and (2) don't have multiple meanings. llvm-svn: 361458
Diffstat (limited to 'lldb/source/Utility/Event.cpp')
-rw-r--r--lldb/source/Utility/Event.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Utility/Event.cpp b/lldb/source/Utility/Event.cpp
index 811594ff9d4..579d0dac86e 100644
--- a/lldb/source/Utility/Event.cpp
+++ b/lldb/source/Utility/Event.cpp
@@ -143,7 +143,7 @@ size_t EventDataBytes::GetByteSize() const { return m_bytes.size(); }
void EventDataBytes::SetBytes(const void *src, size_t src_len) {
if (src != nullptr && src_len > 0)
- m_bytes.assign((const char *)src, src_len);
+ m_bytes.assign(static_cast<const char *>(src), src_len);
else
m_bytes.clear();
}
OpenPOWER on IntegriCloud