Kaydet (Commit) 77d73276 authored tarafından Minh Ngo's avatar Minh Ngo

Returning an object reference in operators =.

Change-Id: Ia10646789962b046bbb95ecaf74b9d248bb7e4e6
üst ae22b3ea
...@@ -57,6 +57,7 @@ const Media& Media::operator=( const Media& other ) ...@@ -57,6 +57,7 @@ const Media& Media::operator=( const Media& other )
mMedia = other.mMedia; mMedia = other.mMedia;
libvlc_media_retain( mMedia ); libvlc_media_retain( mMedia );
return *this;
} }
Media::~Media() Media::~Media()
......
...@@ -83,6 +83,7 @@ namespace VLC ...@@ -83,6 +83,7 @@ namespace VLC
libvlc_media_player_release( mPlayer ); libvlc_media_player_release( mPlayer );
mPlayer = other.mPlayer; mPlayer = other.mPlayer;
libvlc_media_player_retain( mPlayer ); libvlc_media_player_retain( mPlayer );
return *this;
} }
Player::~Player() Player::~Player()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment