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 MAINWINDOW_H
  2. #define MAINWINDOW_H
  3.  
  4. #include <QMainWindow>
  5. #include "rssparser.h"
  6. #include "feedmodel.h"
  7. #include "feedpoller.h"
  8. #include <QSqlDatabase>
  9.  
  10. namespace Ui {
  11. class MainWindow;
  12. }
  13.  
  14. namespace Larss {
  15.  
  16. class MainWindow : public QMainWindow
  17. {
  18. Q_OBJECT
  19.  
  20. public:
  21. explicit MainWindow(QWidget *parent = 0);
  22. ~MainWindow();
  23.  
  24. private slots:
  25. void on_actionExit_activated();
  26.  
  27. void on_feedTreeView_clicked(const QModelIndex &index);
  28.  
  29. void on_newsTableView_clicked(const QModelIndex &index);
  30.  
  31. private:
  32. Ui::MainWindow *ui;
  33. void do_exit();
  34.  
  35. QSqlDatabase db;
  36. FeedModel *feedModel;
  37. RssParser *rssParser;
  38. FeedPoller *poller;
  39. };
  40.  
  41. }
  42.  
  43. #endif // MAINWINDOW_H