summaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2017-06-14 20:00:36 +0000
committerMarshall Clow <mclow.lists@gmail.com>2017-06-14 20:00:36 +0000
commitff5f9b28baebd8c9a0ce36350fc46edabac52a8e (patch)
tree60a32aee280948820052d84e52494633231da729 /test/support
parent899f113f6c12fb633ef1707afbd0a215eaac320d (diff)
Add some const_casts in places where we were implicitly casting away constness. No functional change, but now they're explicit
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@305410 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/support')
-rw-r--r--test/support/allocators.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/support/allocators.h b/test/support/allocators.h
index b1eea8d0b..00e9a0c13 100644
--- a/test/support/allocators.h
+++ b/test/support/allocators.h
@@ -104,7 +104,7 @@ public:
T* allocate(std::size_t, const void* hint)
{
allocate_called = true;
- return (T*)hint;
+ return (T*) const_cast<void *>(hint);
}
};