diff options
author | Minh Ngo <nlminhtl@gmail.com> | 2013-08-22 08:00:32 +0300 |
---|---|---|
committer | Minh Ngo <nlminhtl@gmail.com> | 2013-08-22 08:06:11 +0300 |
commit | 77d732769abec345b9cf8dae415358fd866311e8 (patch) | |
tree | 13493eadbd10015db0e08194d535bc2d6a078e90 /avmedia | |
parent | ae22b3ea1e951e61679edbf56a280895b979279f (diff) |
Returning an object reference in operators =.
Change-Id: Ia10646789962b046bbb95ecaf74b9d248bb7e4e6
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/vlc/wrapper/Media.cxx | 1 | ||||
-rw-r--r-- | avmedia/source/vlc/wrapper/Player.cxx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/avmedia/source/vlc/wrapper/Media.cxx b/avmedia/source/vlc/wrapper/Media.cxx index dd6c89d032d8..825bb0620b4f 100644 --- a/avmedia/source/vlc/wrapper/Media.cxx +++ b/avmedia/source/vlc/wrapper/Media.cxx @@ -57,6 +57,7 @@ const Media& Media::operator=( const Media& other ) mMedia = other.mMedia; libvlc_media_retain( mMedia ); + return *this; } Media::~Media() diff --git a/avmedia/source/vlc/wrapper/Player.cxx b/avmedia/source/vlc/wrapper/Player.cxx index 804d41faa757..9c739bd3b293 100644 --- a/avmedia/source/vlc/wrapper/Player.cxx +++ b/avmedia/source/vlc/wrapper/Player.cxx @@ -83,6 +83,7 @@ namespace VLC libvlc_media_player_release( mPlayer ); mPlayer = other.mPlayer; libvlc_media_player_retain( mPlayer ); + return *this; } Player::~Player() |