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. #include <QtGui/QApplication>
  2. #include "mainwindow.h"
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6. // Create the application and its main_window.
  7. QApplication larss_application(argc, argv);
  8.  
  9. // Set some default values for our application
  10. larss_application.setApplicationName("Larss");
  11. larss_application.setOrganizationName("PHC");
  12. larss_application.setOrganizationDomain("phc.unipi.it");
  13.  
  14. // Create the MainWindow object
  15. Larss::MainWindow main_window;
  16.  
  17. // Show the main window
  18. main_window.show();
  19.  
  20. // Wait for the return code and return it
  21. return larss_application.exec();
  22. }