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. // Set some default values for our application
  7. QCoreApplication::setApplicationName("Larss");
  8. QCoreApplication::setOrganizationName("PHC");
  9. QCoreApplication::setOrganizationDomain("phc.unipi.it");
  10.  
  11. // Create the application and its main_window.
  12. QApplication larss_application(argc, argv);
  13. Larss::MainWindow main_window;
  14.  
  15. // Show the main window
  16. main_window.show();
  17.  
  18. // Wait for the return code and return it
  19. return larss_application.exec();
  20. }