[vlc-commits] Qt: EPGItem: constify
Francois Cartegnie
git at videolan.org
Mon Sep 5 09:31:14 CEST 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Aug 31 09:35:06 2016 +0900| [c96538ba82bc96bc6493f09716c5d4bb86c42999] | committer: Francois Cartegnie
Qt: EPGItem: constify
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c96538ba82bc96bc6493f09716c5d4bb86c42999
---
modules/gui/qt/components/epg/EPGItem.cpp | 4 ++--
modules/gui/qt/components/epg/EPGItem.hpp | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/gui/qt/components/epg/EPGItem.cpp b/modules/gui/qt/components/epg/EPGItem.cpp
index e6fc868..3d83928 100644
--- a/modules/gui/qt/components/epg/EPGItem.cpp
+++ b/modules/gui/qt/components/epg/EPGItem.cpp
@@ -35,7 +35,7 @@
#include "qt.hpp"
-EPGItem::EPGItem( vlc_epg_event_t *data, EPGView *view )
+EPGItem::EPGItem( const vlc_epg_event_t *data, EPGView *view )
: m_view( view )
{
setData( data );
@@ -150,7 +150,7 @@ void EPGItem::setRow( unsigned int i_row_ )
updatePos();
}
-bool EPGItem::setData( vlc_epg_event_t *data )
+bool EPGItem::setData( const vlc_epg_event_t *data )
{
QDateTime newtime = QDateTime::fromTime_t( data->i_start );
QString newname = qfu( data->psz_name );
diff --git a/modules/gui/qt/components/epg/EPGItem.hpp b/modules/gui/qt/components/epg/EPGItem.hpp
index 3edd7dd..938ecdc 100644
--- a/modules/gui/qt/components/epg/EPGItem.hpp
+++ b/modules/gui/qt/components/epg/EPGItem.hpp
@@ -37,7 +37,7 @@ class EPGView;
class EPGItem : public QGraphicsItem
{
public:
- EPGItem( vlc_epg_event_t *data, EPGView *view );
+ EPGItem( const vlc_epg_event_t *data, EPGView *view );
QRectF boundingRect() const Q_DECL_OVERRIDE;
void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0 ) Q_DECL_OVERRIDE;
@@ -49,7 +49,7 @@ public:
const QString& name() const { return m_name; }
QString description() const;
int rating() const { return m_rating; }
- bool setData( vlc_epg_event_t * );
+ bool setData( const vlc_epg_event_t * );
void setRow( unsigned int );
void setCurrent( bool );
void setDuration( int duration );
More information about the vlc-commits
mailing list