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 FEEDNODE_H
  2. #define FEEDNODE_H
  3.  
  4. #include <QObject>
  5. #include <QStandardItem>
  6.  
  7. namespace Larss {
  8.  
  9. class FeedNode : public QStandardItem
  10. {
  11.  
  12. public:
  13. explicit FeedNode(quint64 id, QString name, QString url = "");
  14.  
  15. enum ItemType {
  16. Root = 1001,
  17. Category = 1002,
  18. Feed = 1003
  19. };
  20.  
  21. /**
  22.   * @brief Return the type of this element.
  23.   */
  24. ItemType type ();
  25.  
  26. quint64 id();
  27. QString name();
  28. QString url();
  29.  
  30. private:
  31.  
  32. /**
  33.   * @brief The id of the item in the database.
  34.   */
  35. quint64 nodeId;
  36.  
  37. /**
  38.   * @brief The name of the item.
  39.   */
  40. QString nodeName;
  41.  
  42. /**
  43.   * @brief The Url associated with the feed, if any
  44.   * (Category do not have this one).
  45.   */
  46. QString nodeUrl;
  47.  
  48. private:
  49.  
  50. };
  51.  
  52. }
  53.  
  54. #endif // FEEDNODE_H