diff options
author | Tobias Markmann <tm@ayena.de> | 2017-06-14 21:21:32 (GMT) |
---|---|---|
committer | Kevin Smith <kevin.smith@isode.com> | 2017-06-22 10:50:01 (GMT) |
commit | 2416d8818afe449dc93b9f8a4e0e3ecaeba0509d (patch) | |
tree | 82a3a5489f2dca60e800b4222f5b601069efd075 | |
parent | 44917c5f63ee2373b65911ea953d19fc0d1f3272 (diff) | |
download | swift-2416d8818afe449dc93b9f8a4e0e3ecaeba0509d.zip swift-2416d8818afe449dc93b9f8a4e0e3ecaeba0509d.tar.bz2 |
Add missing SWIFTEN_API annotation
Test-Information:
None.
Change-Id: I1d8e0af76841824ff573bd19f664a04e4f2d97a1
-rw-r--r-- | Swiften/Base/SafeAllocator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Base/SafeAllocator.h b/Swiften/Base/SafeAllocator.h index 0369ec4..d47bb02 100644 --- a/Swiften/Base/SafeAllocator.h +++ b/Swiften/Base/SafeAllocator.h @@ -1,36 +1,36 @@ /* - * Copyright (c) 2011-2016 Isode Limited. + * Copyright (c) 2011-2017 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <algorithm> #include <vector> #include <Swiften/Base/API.h> namespace Swift { - void secureZeroMemory(char* memory, size_t numberOfBytes); + SWIFTEN_API void secureZeroMemory(char* memory, size_t numberOfBytes); template<typename T> class SWIFTEN_API SafeAllocator : public std::allocator<T> { public: template <class U> struct rebind { typedef SafeAllocator<U> other; }; SafeAllocator() SWIFTEN_NOEXCEPT {} SafeAllocator(const SafeAllocator&) SWIFTEN_NOEXCEPT : std::allocator<T>() {} template <class U> SafeAllocator(const SafeAllocator<U>&) SWIFTEN_NOEXCEPT {} ~SafeAllocator() SWIFTEN_NOEXCEPT {} void deallocate (T* p, size_t num) { secureZeroMemory(reinterpret_cast<char*>(p), num); std::allocator<T>::deallocate(p, num); } SWIFTEN_DEFAULT_COPY_ASSIGMNENT_OPERATOR(SafeAllocator) }; } |