viewgit/index.php:465 Only variables should be passed by reference [2048]

viewgit/index.php:466 Non-static method GeSHi::get_language_name_from_extension() should not be called statically [2048]

  1. #ifndef UNREADCOUNTITEMDELEGATE_H
  2. #define UNREADCOUNTITEMDELEGATE_H
  3.  
  4. #include <QObject>
  5. #include <QStyledItemDelegate>
  6. #include "feedmodel.h"
  7. #include "rssparser.h"
  8.  
  9. namespace Larss {
  10.  
  11. class UnReadCountItemDelegate : public QStyledItemDelegate
  12. {
  13. Q_OBJECT
  14. public:
  15. explicit UnReadCountItemDelegate(FeedModel *feedModel, RssParser *rssParser, QObject *parent = 0);
  16.  
  17. protected:
  18. void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
  19. // QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
  20.  
  21. signals:
  22.  
  23. public slots:
  24.  
  25. private:
  26. FeedModel *feedModel;
  27. RssParser *rssParser;
  28.  
  29. };
  30. }
  31.  
  32. #endif // UNREADCOUNTITEMDELEGATE_H