Commit 3d565410 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Do not return a const reference from assignment operator

parent 1be83566
......@@ -37,7 +37,7 @@ Instance::Instance( const Instance& another )
retain();
}
const Instance& Instance::operator=( const Instance& another )
Instance& Instance::operator=( const Instance& another )
{
if ( this == &another )
{
......
......@@ -48,7 +48,7 @@ public:
* to this Instance
* \param another existing Instance
*/
const Instance& operator=(const Instance& another);
Instance& operator=(const Instance& another);
/**
* Check if 2 Instance objects contain the same libvlc_instance_t.
......
......@@ -64,7 +64,7 @@ Media::Media(const Media& another)
m_eventManager = new EventManager( *another.m_eventManager );
}
const Media& Media::operator=(const Media& another)
Media& Media::operator=(const Media& another)
{
if (this == &another)
{
......
......@@ -117,7 +117,7 @@ public:
* to this Media
* \param another existing Media
*/
const Media& operator=(const Media& another);
Media& operator=(const Media& another);
/**
* Check if 2 Media objects contain the same libvlc_media_t.
......
......@@ -79,7 +79,7 @@ private:
void release();
MediaDiscoverer(const MediaDiscoverer& another);
const MediaDiscoverer& operator=(const MediaDiscoverer& another);
MediaDiscoverer& operator=(const MediaDiscoverer& another);
private:
EventManager* m_eventManager;
......
......@@ -38,7 +38,7 @@ MediaLibrary::MediaLibrary(const MediaLibrary& another)
retain();
}
const MediaLibrary& MediaLibrary::operator=(const MediaLibrary& another)
MediaLibrary& MediaLibrary::operator=(const MediaLibrary& another)
{
if (this == &another)
{
......
......@@ -50,7 +50,7 @@ public:
* to this MediaLibrary
* \param another existing MediaLibrary
*/
const MediaLibrary& operator=(const MediaLibrary& another);
MediaLibrary& operator=(const MediaLibrary& another);
/**
* Check if 2 MediaLibrary objects contain the same libvlc_media_library_t.
......
......@@ -36,7 +36,7 @@ MediaList::MediaList(const MediaList& another)
retain();
}
const MediaList& MediaList::operator=(const MediaList& another)
MediaList& MediaList::operator=(const MediaList& another)
{
if (this == &another)
{
......
......@@ -46,7 +46,7 @@ public:
* to this MediaList
* \param another existing MediaList
*/
const MediaList& operator=(const MediaList& another);
MediaList& operator=(const MediaList& another);
/**
* Check if 2 MediaList objects contain the same libvlc_media_list_t.
......
......@@ -34,7 +34,7 @@ MediaListPlayer::MediaListPlayer(const MediaListPlayer& another)
retain();
}
const MediaListPlayer& MediaListPlayer::operator=(const MediaListPlayer& another)
MediaListPlayer& MediaListPlayer::operator=(const MediaListPlayer& another)
{
if (this == &another)
{
......
......@@ -50,7 +50,7 @@ public:
* to this MediaListPlayer
* \param another existing MediaListPlayer
*/
const MediaListPlayer& operator=(const MediaListPlayer& another);
MediaListPlayer& operator=(const MediaListPlayer& another);
/**
* Check if 2 MediaListPlayer objects contain the same libvlc_media_list_player_t.
......
......@@ -36,7 +36,7 @@ MediaPlayer::MediaPlayer(const MediaPlayer& another)
retain();
}
const MediaPlayer& MediaPlayer::operator=(const MediaPlayer& another)
MediaPlayer& MediaPlayer::operator=(const MediaPlayer& another)
{
if (this == &another)
{
......
......@@ -53,7 +53,7 @@ public:
* to this MediaPlayer
* \param another existing MediaPlayer
*/
const MediaPlayer& operator=(const MediaPlayer& another);
MediaPlayer& operator=(const MediaPlayer& another);
/**
* Check if 2 MediaPlayer objects contain the same libvlc_media_player_t.
......
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