mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
make swap function noexcept
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
b4fe04f8e0
commit
fa234fc053
@ -85,7 +85,7 @@ Item &APE::Item::operator=(const Item &item)
|
||||
return *this;
|
||||
}
|
||||
|
||||
void APE::Item::swap(Item &item)
|
||||
void APE::Item::swap(Item &item) noexcept
|
||||
{
|
||||
using std::swap;
|
||||
|
||||
|
@ -85,7 +85,7 @@ namespace TagLib {
|
||||
/*!
|
||||
* Exchanges the content of this item by the content of \a item.
|
||||
*/
|
||||
void swap(Item &item);
|
||||
void swap(Item &item) noexcept;
|
||||
|
||||
/*!
|
||||
* Returns the key.
|
||||
|
@ -111,7 +111,7 @@ ASF::Attribute::Attribute(bool value) :
|
||||
|
||||
ASF::Attribute &ASF::Attribute::operator=(const ASF::Attribute &) = default;
|
||||
|
||||
void ASF::Attribute::swap(Attribute &other)
|
||||
void ASF::Attribute::swap(Attribute &other) noexcept
|
||||
{
|
||||
using std::swap;
|
||||
|
||||
|
@ -116,7 +116,7 @@ namespace TagLib
|
||||
/*!
|
||||
* Exchanges the content of the Attribute by the content of \a other.
|
||||
*/
|
||||
void swap(Attribute &other);
|
||||
void swap(Attribute &other) noexcept;
|
||||
|
||||
/*!
|
||||
* Destroys the attribute.
|
||||
|
@ -107,7 +107,7 @@ int ASF::Picture::dataSize() const
|
||||
|
||||
ASF::Picture &ASF::Picture::operator=(const ASF::Picture &) = default;
|
||||
|
||||
void ASF::Picture::swap(Picture &other)
|
||||
void ASF::Picture::swap(Picture &other) noexcept
|
||||
{
|
||||
using std::swap;
|
||||
|
||||
|
@ -78,7 +78,7 @@ namespace TagLib
|
||||
/*!
|
||||
* Exchanges the content of the Picture by the content of \a other.
|
||||
*/
|
||||
void swap(Picture &other);
|
||||
void swap(Picture &other) noexcept;
|
||||
|
||||
/*!
|
||||
* Returns true if Picture stores valid picture
|
||||
|
@ -448,7 +448,7 @@ bool FileRef::isNull() const
|
||||
|
||||
FileRef &FileRef::operator=(const FileRef &) = default;
|
||||
|
||||
void FileRef::swap(FileRef &ref)
|
||||
void FileRef::swap(FileRef &ref) noexcept
|
||||
{
|
||||
using std::swap;
|
||||
|
||||
|
@ -363,7 +363,7 @@ namespace TagLib {
|
||||
/*!
|
||||
* Exchanges the content of the FileRef by the content of \a ref.
|
||||
*/
|
||||
void swap(FileRef &ref);
|
||||
void swap(FileRef &ref) noexcept;
|
||||
|
||||
/*!
|
||||
* Returns true if this FileRef and \a ref point to the same File object.
|
||||
|
@ -49,7 +49,7 @@ MP4::CoverArt::CoverArt(const CoverArt &) = default;
|
||||
MP4::CoverArt &MP4::CoverArt::operator=(const CoverArt &) = default;
|
||||
|
||||
void
|
||||
MP4::CoverArt::swap(CoverArt &item)
|
||||
MP4::CoverArt::swap(CoverArt &item) noexcept
|
||||
{
|
||||
using std::swap;
|
||||
|
||||
|
@ -60,7 +60,7 @@ namespace TagLib {
|
||||
/*!
|
||||
* Exchanges the content of the CoverArt by the content of \a item.
|
||||
*/
|
||||
void swap(CoverArt &item);
|
||||
void swap(CoverArt &item) noexcept;
|
||||
|
||||
//! Format of the image
|
||||
Format format() const;
|
||||
|
@ -55,7 +55,7 @@ MP4::Item::Item(const Item &) = default;
|
||||
MP4::Item &MP4::Item::operator=(const Item &) = default;
|
||||
|
||||
void
|
||||
MP4::Item::swap(Item &item)
|
||||
MP4::Item::swap(Item &item) noexcept
|
||||
{
|
||||
using std::swap;
|
||||
|
||||
|
@ -50,7 +50,7 @@ namespace TagLib {
|
||||
/*!
|
||||
* Exchanges the content of the Item by the content of \a item.
|
||||
*/
|
||||
void swap(Item &item);
|
||||
void swap(Item &item) noexcept;
|
||||
|
||||
virtual ~Item();
|
||||
|
||||
|
@ -818,7 +818,7 @@ ByteVector &ByteVector::operator=(const char *data)
|
||||
return *this;
|
||||
}
|
||||
|
||||
void ByteVector::swap(ByteVector &v)
|
||||
void ByteVector::swap(ByteVector &v) noexcept
|
||||
{
|
||||
using std::swap;
|
||||
|
||||
|
@ -617,7 +617,7 @@ namespace TagLib {
|
||||
/*!
|
||||
* Exchanges the content of the ByteVector by the content of \a v.
|
||||
*/
|
||||
void swap(ByteVector &v);
|
||||
void swap(ByteVector &v) noexcept;
|
||||
|
||||
/*!
|
||||
* Returns a hex-encoded copy of the byte vector.
|
||||
|
@ -276,7 +276,7 @@ namespace TagLib {
|
||||
/*!
|
||||
* Exchanges the content of this list by the content of \a l.
|
||||
*/
|
||||
void swap(List<T> &l);
|
||||
void swap(List<T> &l) noexcept;
|
||||
|
||||
/*!
|
||||
* Compares this list with \a l and returns true if all of the elements are
|
||||
|
@ -317,7 +317,7 @@ List<T> &List<T>::operator=(std::initializer_list<T> init)
|
||||
}
|
||||
|
||||
template <class T>
|
||||
void List<T>::swap(List<T> &l)
|
||||
void List<T>::swap(List<T> &l) noexcept
|
||||
{
|
||||
using std::swap;
|
||||
|
||||
|
@ -214,7 +214,7 @@ namespace TagLib {
|
||||
/*!
|
||||
* Exchanges the content of this map by the content of \a m.
|
||||
*/
|
||||
void swap(Map<Key, T> &m);
|
||||
void swap(Map<Key, T> &m) noexcept;
|
||||
|
||||
/*!
|
||||
* Compares this map with \a m and returns true if all of the elements are
|
||||
|
@ -197,7 +197,7 @@ Map<Key, T> &Map<Key, T>::operator=(std::initializer_list<std::pair<const Key, T
|
||||
}
|
||||
|
||||
template <class Key, class T>
|
||||
void Map<Key, T>::swap(Map<Key, T> &m)
|
||||
void Map<Key, T>::swap(Map<Key, T> &m) noexcept
|
||||
{
|
||||
using std::swap;
|
||||
|
||||
|
@ -660,7 +660,7 @@ String &String::operator=(const ByteVector &v)
|
||||
return *this;
|
||||
}
|
||||
|
||||
void String::swap(String &s)
|
||||
void String::swap(String &s) noexcept
|
||||
{
|
||||
using std::swap;
|
||||
|
||||
|
@ -498,7 +498,7 @@ namespace TagLib {
|
||||
/*!
|
||||
* Exchanges the content of the String by the content of \a s.
|
||||
*/
|
||||
void swap(String &s);
|
||||
void swap(String &s) noexcept;
|
||||
|
||||
/*!
|
||||
* To be able to use this class in a Map, this operator needed to be
|
||||
|
Loading…
Reference in New Issue
Block a user