Browse Source

Add DStr move assignment operator

Palana 11 years ago
parent
commit
070f6cb6a6
1 changed files with 6 additions and 0 deletions
  1. 6 0
      libobs/util/dstr.hpp

+ 6 - 0
libobs/util/dstr.hpp

@@ -31,6 +31,12 @@ public:
 		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;}