From f94b31e13127247160815c5902e75f7bcbf3d393 Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 2 Apr 2016 23:28:44 +0200 Subject: Code cleanup --- MediaContainer.cpp | 6 +++--- MediaContainer.h | 4 ++-- PVideo.cpp | 26 +++++++++++++------------- PVideo.h | 8 ++++---- PlexServer.h | 1 - Plexservice.cpp | 2 +- Plexservice.h | 3 +-- SubscriptionManager.cpp | 20 ++++++++------------ SubscriptionManager.h | 8 ++++---- browserGrid.cpp | 8 ++++---- cPlexOsdItem.cpp | 4 ++-- cPlexOsdItem.h | 6 +++--- detailView.cpp | 8 ++++---- detailView.h | 6 +++--- displayReplaySD.cpp | 2 +- displayReplaySD.h | 2 +- hlsPlayer.cpp | 10 +++++----- hlsPlayer.h | 8 ++++---- hlsPlayerControl.cpp | 8 ++++---- hlsPlayerControl.h | 10 +++++----- pictureCache.cpp | 1 - plex.cpp | 4 ++-- plex.h | 4 ++-- plexOsd.cpp | 4 ++-- plexOsd.h | 5 +---- plexSdOsd.cpp | 18 ++++++++---------- plexSdOsd.h | 5 +---- plexgdm.h | 6 ------ po/de_DE.po | 40 ++++++++++++++++++++-------------------- 29 files changed, 108 insertions(+), 129 deletions(-) diff --git a/MediaContainer.cpp b/MediaContainer.cpp index c7d4e5c..264d33b 100644 --- a/MediaContainer.cpp +++ b/MediaContainer.cpp @@ -47,7 +47,7 @@ MediaContainer::MediaContainer(std::istream* response, PlexServer* Server) } else if(Poco::icompare(pNode->nodeName(), "Directory") == 0) { m_vDirectories.push_back(Directory(pNode, m_pServer, this)); } else if(Poco::icompare(pNode->nodeName(), "Video") == 0) { - m_vVideos.push_back(Video(pNode, m_pServer, this)); + m_vVideos.push_back(cVideo(pNode, m_pServer, this)); } else if(Poco::icompare(pNode->nodeName(), "Device") == 0) { m_vDevices.push_back(Device(pNode, this)); } else if(Poco::icompare(pNode->nodeName(), "Playlist") == 0) { @@ -75,10 +75,10 @@ std::string MediaContainer::ThumbUri() } #ifdef SKINDESIGNER -void MediaContainer::PreCache() +void MediaContainer::PreCache() { bool foo; - for(std::vector::iterator it = m_vVideos.begin(); it != m_vVideos.end(); ++it) { + for(std::vector::iterator it = m_vVideos.begin(); it != m_vVideos.end(); ++it) { if(!it->m_sThumb.empty()) cPictureCache::GetInstance().GetPath(it->ThumbUri(), 1280, 720, foo); if(!it->m_sArt.empty()) cPictureCache::GetInstance().GetPath(it->ArtUri(), 1920, 1080, foo); } diff --git a/MediaContainer.h b/MediaContainer.h index 0f385be..c6cb14e 100644 --- a/MediaContainer.h +++ b/MediaContainer.h @@ -33,7 +33,7 @@ using Poco::Exception; namespace plexclient { -class Video; +class cVideo; class Directory; class Device; class Playlist; @@ -49,7 +49,7 @@ protected: public: std::vector m_vDirectories; - std::vector