Commit 1f4781ba authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Remove constructor that take a C type

One can use the other constructor to generate a C++ type directly
parent f7d62285
......@@ -28,16 +28,7 @@
namespace VLC {
Instance::Instance(libvlc_instance_t* obj)
{
if (!obj)
{
throw Exception("Can't construct Instance");
}
m_obj = obj;
}
Instance::Instance(const Instance& another)
Instance::Instance(const Instance& another)
{
m_obj = another.m_obj;
retain();
......
......@@ -27,15 +27,6 @@
namespace VLC {
Media::Media(libvlc_media_t* obj)
{
if (!obj)
{
throw Exception("Can't construct Media");
}
m_obj = obj;
}
Media::Media(const Media& another)
{
m_obj = another.m_obj;
......
......@@ -28,16 +28,6 @@
namespace VLC {
MediaDiscoverer::MediaDiscoverer(libvlc_media_discoverer_t* obj)
{
if (!obj)
{
throw Exception("Can't construct MediaDiscoverer");
}
m_obj = obj;
m_own = true;
}
MediaDiscoverer::MediaDiscoverer(MediaDiscoverer&& another)
{
m_obj = another.m_obj;
......
......@@ -27,16 +27,6 @@
namespace VLC {
MediaLibrary::MediaLibrary(libvlc_media_library_t* obj)
{
if (!obj)
{
throw Exception("Can't construct MediaLibrary");
}
m_obj = obj;
}
MediaLibrary::MediaLibrary(const MediaLibrary& another)
{
m_obj = another.m_obj;
......
......@@ -27,16 +27,6 @@
namespace VLC {
MediaList::MediaList(libvlc_media_list_t* obj)
{
if (!obj)
{
throw Exception("Can't construct MediaList");
}
m_obj = obj;
}
MediaList::MediaList(const MediaList& another)
{
m_obj = another.m_obj;
......
......@@ -28,15 +28,6 @@
namespace VLC {
MediaListPlayer::MediaListPlayer(libvlc_media_list_player_t* obj)
{
if (!obj)
{
throw Exception("Can't construct MediaListPlayer");
}
m_obj = obj;
}
MediaListPlayer::MediaListPlayer(const MediaListPlayer& another)
{
m_obj = another.m_obj;
......
......@@ -28,15 +28,6 @@
namespace VLC {
MediaPlayer::MediaPlayer(libvlc_media_player_t* obj)
{
if (!obj)
{
throw Exception("Can't construct MediaPlayer");
}
m_obj = obj;
}
MediaPlayer::MediaPlayer(const MediaPlayer& another)
{
m_obj = another.m_obj;
......
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