forked from mia/Aegisub
Explicitly default AssAttachment's copy constructor
This commit is contained in:
parent
7eb2504dbb
commit
f7661dbd78
2 changed files with 2 additions and 8 deletions
|
@ -22,15 +22,9 @@
|
||||||
|
|
||||||
#include <boost/algorithm/string/predicate.hpp>
|
#include <boost/algorithm/string/predicate.hpp>
|
||||||
|
|
||||||
|
// Out-of-line to anchor vtable
|
||||||
AssEntryGroup AssAttachment::Group() const { return group; }
|
AssEntryGroup AssAttachment::Group() const { return group; }
|
||||||
|
|
||||||
AssAttachment::AssAttachment(AssAttachment const& rgt)
|
|
||||||
: entry_data(rgt.entry_data)
|
|
||||||
, filename(rgt.filename)
|
|
||||||
, group(rgt.group)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
AssAttachment::AssAttachment(std::string const& header, AssEntryGroup group)
|
AssAttachment::AssAttachment(std::string const& header, AssEntryGroup group)
|
||||||
: entry_data(header + "\r\n")
|
: entry_data(header + "\r\n")
|
||||||
, filename(header.substr(10))
|
, filename(header.substr(10))
|
||||||
|
|
|
@ -48,7 +48,7 @@ public:
|
||||||
std::string const& GetEntryData() const { return entry_data; }
|
std::string const& GetEntryData() const { return entry_data; }
|
||||||
AssEntryGroup Group() const override;
|
AssEntryGroup Group() const override;
|
||||||
|
|
||||||
AssAttachment(AssAttachment const& rgt);
|
AssAttachment(AssAttachment const& rgt) = default;
|
||||||
AssAttachment(std::string const& header, AssEntryGroup group);
|
AssAttachment(std::string const& header, AssEntryGroup group);
|
||||||
AssAttachment(agi::fs::path const& name, AssEntryGroup group);
|
AssAttachment(agi::fs::path const& name, AssEntryGroup group);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue