11#ifndef __AUDACITY_WXFILENAMEWRAPPER__
12#define __AUDACITY_WXFILENAMEWRAPPER__
16#include <wx/filename.h>
23 using wxFileName::wxFileName;
39 enum :
size_t {
Size =
sizeof(*this) };
43 memcpy(&buffer,
this,
Size);
44 memcpy(
this, &that,
Size);
45 memcpy(&that, &buffer,
Size);
51 void swap(Contents &that) {
52 m_volume.swap(that.m_volume);
53 m_dirs.swap(that.m_dirs);
54 m_name.swap(that.m_name);
55 m_ext.swap(that.m_ext);
58 std::swap(m_dontFollowLinks, that.m_dontFollowLinks);
63 wxString m_name, m_ext;
66 bool m_dontFollowLinks;
69 reinterpret_cast<Contents*
>(
this)->
swap
70 (*
reinterpret_cast<Contents*
>(&that));
void swap(wxFileNameWrapper &that)
wxFileNameWrapper(const wxFileNameWrapper &that)=default
wxFileNameWrapper & operator=(const wxFileNameWrapper &that)=default
wxFileNameWrapper()=default
wxFileNameWrapper(wxFileNameWrapper &&that)
wxFileNameWrapper(const wxFileName &that)
void swap(std::unique_ptr< Alg_seq > &a, std::unique_ptr< Alg_seq > &b)
SizeType< float > Size
Alias for SizeType<float>