Skip to content

Commit

Permalink
Add DStr move assignment operator
Browse files Browse the repository at this point in the history
  • Loading branch information
palana committed Jun 25, 2014
1 parent 5afedb1 commit 070f6cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libobs/util/dstr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ class DStr {
dstr_move(&str, &other.str);
}

inline DStr &operator=(DStr &&other)
{
dstr_move(&str, &other.str);
return *this;
}

inline ~DStr() {dstr_free(&str);}

inline operator dstr*() {return &str;}
Expand Down

0 comments on commit 070f6cb

Please sign in to comment.