Commit 01a9f7b2 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

media discoverer: Remove unnecessary temporary variables

parent c95e9212
......@@ -21,15 +21,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/* This file is autogenerated */
#include <vlc.hpp>
namespace VLC {
namespace VLC
{
MediaDiscoverer::~MediaDiscoverer()
MediaDiscoverer::~MediaDiscoverer()
{
release();
}
......@@ -42,7 +39,7 @@ MediaDiscoverer* MediaDiscoverer::create( Instance &inst, const std::string& nam
return new MediaDiscoverer( ptr );
}
std::string MediaDiscoverer::localizedName()
std::string MediaDiscoverer::localizedName()
{
char * c_result = libvlc_media_discoverer_localized_name(m_obj);
std::string result = c_result;
......@@ -50,18 +47,14 @@ std::string MediaDiscoverer::localizedName()
return result;
}
libvlc_event_manager_t * MediaDiscoverer::eventManager()
libvlc_event_manager_t * MediaDiscoverer::eventManager()
{
libvlc_event_manager_t * c_result = libvlc_media_discoverer_event_manager(m_obj);
libvlc_event_manager_t * result = c_result;
return result;
return libvlc_media_discoverer_event_manager(m_obj);
}
bool MediaDiscoverer::isRunning()
bool MediaDiscoverer::isRunning()
{
int c_result = libvlc_media_discoverer_is_running(m_obj);
bool result = c_result;
return result;
return libvlc_media_discoverer_is_running(m_obj);
}
MediaDiscoverer::MediaDiscoverer(Internal::InternalPtr ptr)
......@@ -69,7 +62,7 @@ MediaDiscoverer::MediaDiscoverer(Internal::InternalPtr ptr)
{
}
void MediaDiscoverer::release()
void MediaDiscoverer::release()
{
libvlc_media_discoverer_release(m_obj);
}
......
......@@ -21,17 +21,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/* This file is autogenerated */
#ifndef LIBVLC_CXX_MEDIADISCOVERER_H
#define LIBVLC_CXX_MEDIADISCOVERER_H
#include <libvlc_common.hpp>
#include "libvlcpp.hpp"
namespace VLC
namespace VLC
{
......
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