Skip to content

Commit

Permalink
TempFile.h: Add move constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
sdottaka committed Oct 7, 2023
1 parent 5701b36 commit 63167f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Src/TempFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class TempFile
{
public:
TempFile() = default;
TempFile(TempFile&& other) : m_path(other.m_path) { other.m_path.clear(); }
~TempFile();
String Create(const String& prefix = _T(""), const String& ext = _T(""));
void Attach(const String& path) { Delete(); m_path = path; }
Expand Down

0 comments on commit 63167f6

Please sign in to comment.