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

MediaLibrary: Remove unnecessary temporary variables

parent 01a9f7b2
......@@ -23,7 +23,8 @@
#include <vlc.hpp>
namespace VLC {
namespace VLC
{
MediaLibrary*MediaLibrary::create(Instance& instance)
{
......@@ -39,9 +40,9 @@ MediaLibrary::MediaLibrary(const MediaLibrary& another)
retain();
}
const MediaLibrary& MediaLibrary::operator=(const MediaLibrary& another)
const MediaLibrary& MediaLibrary::operator=(const MediaLibrary& another)
{
if (this == &another)
if (this == &another)
{
return *this;
}
......@@ -51,21 +52,19 @@ const MediaLibrary& MediaLibrary::operator=(const MediaLibrary& another)
return *this;
}
bool MediaLibrary::operator==(const MediaLibrary& another) const
bool MediaLibrary::operator==(const MediaLibrary& another) const
{
return m_obj == another.m_obj;
}
MediaLibrary::~MediaLibrary()
MediaLibrary::~MediaLibrary()
{
release();
}
int MediaLibrary::load()
int MediaLibrary::load()
{
int c_result = libvlc_media_library_load(m_obj);
int result = c_result;
return result;
return libvlc_media_library_load(m_obj);
}
MediaLibrary::MediaLibrary(Internal::InternalPtr ptr)
......@@ -73,12 +72,12 @@ MediaLibrary::MediaLibrary(Internal::InternalPtr ptr)
{
}
void MediaLibrary::release()
void MediaLibrary::release()
{
libvlc_media_library_release(m_obj);
}
void MediaLibrary::retain()
void MediaLibrary::retain()
{
libvlc_media_library_retain(m_obj);
}
......
......@@ -4,6 +4,7 @@
* Copyright © 2014 the VideoLAN team
*
* Authors: Alexey Sokolov <alexey@alexeysokolov.co.cc>
* Hugo Beauzée-Luyssen <hugo@beauzee.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
......@@ -20,20 +21,15 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/* This file is autogenerated */
#ifndef LIBVLC_CXX_MEDIALIBRARY_H
#define LIBVLC_CXX_MEDIALIBRARY_H
#include <libvlc_common.hpp>
#include "libvlcpp.hpp"
namespace VLC
namespace VLC
{
class MediaLibrary : public Internal<libvlc_media_library_t>
{
public:
......
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