diff --git a/source/modules/water/containers/NamedValueSet.h b/source/modules/water/containers/NamedValueSet.h index bcaf4cdb0..9af491056 100644 --- a/source/modules/water/containers/NamedValueSet.h +++ b/source/modules/water/containers/NamedValueSet.h @@ -3,7 +3,7 @@ This file is part of the Water library. Copyright (c) 2016 ROLI Ltd. - Copyright (C) 2017 Filipe Coelho + Copyright (C) 2017-2018 Filipe Coelho Permission is granted to use this software under the terms of the ISC license http://www.isc.org/downloads/software-support-policy/isc-license/ @@ -170,15 +170,6 @@ public: /** Removes all values. */ void clear(); - //============================================================================== - /** Sets properties to the values of all of an XML element's attributes. */ - void setFromXmlAttributes (const XmlElement& xml); - - /** Sets attributes in an XML element corresponding to each of this object's - properties. - */ - void copyToXmlAttributes (XmlElement& xml) const; - private: //============================================================================== Array values; diff --git a/source/modules/water/memory/HeapBlock.h b/source/modules/water/memory/HeapBlock.h index 322d1e7fd..105770c21 100644 --- a/source/modules/water/memory/HeapBlock.h +++ b/source/modules/water/memory/HeapBlock.h @@ -3,7 +3,7 @@ This file is part of the Water library. Copyright (c) 2016 ROLI Ltd. - Copyright (C) 2017 Filipe Coelho + Copyright (C) 2017-2018 Filipe Coelho Permission is granted to use this software under the terms of the ISC license http://www.isc.org/downloads/software-support-policy/isc-license/ @@ -89,7 +89,7 @@ public: /** Destructor. This will free the data, if any has been allocated. */ - ~HeapBlock() + ~HeapBlock() noexcept { std::free (data); } diff --git a/source/modules/water/memory/Memory.h b/source/modules/water/memory/Memory.h index e35302867..c464eafa2 100644 --- a/source/modules/water/memory/Memory.h +++ b/source/modules/water/memory/Memory.h @@ -3,7 +3,7 @@ This file is part of the Water library. Copyright (c) 2016 ROLI Ltd. - Copyright (C) 2017 Filipe Coelho + Copyright (C) 2017-2018 Filipe Coelho Permission is granted to use this software under the terms of the ISC license http://www.isc.org/downloads/software-support-policy/isc-license/ @@ -34,11 +34,11 @@ namespace water { //============================================================================== /** Fills a block of memory with zeros. */ -inline void zeromem (void* memory, size_t numBytes) noexcept { memset (memory, 0, numBytes); } +inline void zeromem (void* memory, size_t numBytes) noexcept { std::memset (memory, 0, numBytes); } /** Overwrites a structure or object with zeros. */ template -inline void zerostruct (Type& structure) noexcept { memset (&structure, 0, sizeof (structure)); } +inline void zerostruct (Type& structure) noexcept { std::memset (&structure, 0, sizeof (structure)); } /** Delete an object pointer, and sets the pointer to null. @@ -73,7 +73,7 @@ template inline Type readUnaligned (const void* srcPtr) noexcept { Type value; - memcpy (&value, srcPtr, sizeof (Type)); + std::memcpy (&value, srcPtr, sizeof (Type)); return value; } @@ -82,7 +82,7 @@ inline Type readUnaligned (const void* srcPtr) noexcept template inline void writeUnaligned (void* dstPtr, Type value) noexcept { - memcpy (dstPtr, &value, sizeof(Type)); + std::memcpy (dstPtr, &value, sizeof(Type)); } }