diff options
Diffstat (limited to 'Swiften/Base')
| -rw-r--r-- | Swiften/Base/BoostRandomGenerator.h | 3 | ||||
| -rw-r--r-- | Swiften/Base/SafeAllocator.h | 4 | ||||
| -rw-r--r-- | Swiften/Base/SafeString.h | 5 |
3 files changed, 7 insertions, 5 deletions
diff --git a/Swiften/Base/BoostRandomGenerator.h b/Swiften/Base/BoostRandomGenerator.h index 60d56af..055c65f 100644 --- a/Swiften/Base/BoostRandomGenerator.h +++ b/Swiften/Base/BoostRandomGenerator.h @@ -5,17 +5,18 @@ */ #pragma once #include <Swiften/Base/RandomGenerator.h> #include <Swiften/Base/Override.h> +#include <Swiften/Base/API.h> #include <boost/random/mersenne_twister.hpp> namespace Swift { - class BoostRandomGenerator : public RandomGenerator { + class SWIFTEN_API BoostRandomGenerator : public RandomGenerator { public: BoostRandomGenerator(); int generateRandomInteger(int max) SWIFTEN_OVERRIDE; private: diff --git a/Swiften/Base/SafeAllocator.h b/Swiften/Base/SafeAllocator.h index d2e49b4..5f9ac70 100644 --- a/Swiften/Base/SafeAllocator.h +++ b/Swiften/Base/SafeAllocator.h @@ -1,8 +1,8 @@ /* - * Copyright (c) 2011-2014 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once @@ -12,13 +12,13 @@ #include <Swiften/Base/API.h> namespace Swift { void secureZeroMemory(char* memory, size_t numberOfBytes); template<typename T> - class SafeAllocator : public std::allocator<T> { + class SWIFTEN_API SafeAllocator : public std::allocator<T> { public: template <class U> struct rebind { typedef SafeAllocator<U> other; }; SafeAllocator() SWIFTEN_NOEXCEPT {} diff --git a/Swiften/Base/SafeString.h b/Swiften/Base/SafeString.h index a0f14e0..65d49d1 100644 --- a/Swiften/Base/SafeString.h +++ b/Swiften/Base/SafeString.h @@ -1,18 +1,19 @@ /* - * Copyright (c) 2011 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <Swiften/Base/SafeByteArray.h> +#include <Swiften/Base/API.h> namespace Swift { - class SafeString { + class SWIFTEN_API SafeString { public: SafeString(const SafeByteArray& data) : data(data) { } SafeString(const std::string& s) { data = createSafeByteArray(s); |
Swift