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.  
  2. using System;
  3.  
  4. namespace Dizzy
  5. {
  6.  
  7.  
  8. public class Log
  9. {
  10.  
  11. public delegate void LogEvent (string message);
  12. public static event LogEvent StatusBarUpdate;
  13.  
  14. public Log ()
  15. {
  16. }
  17.  
  18. public static void Error (string message)
  19. {
  20. // Facciamo capire che è un errore
  21. ConsoleColor initial = Console.ForegroundColor;
  22. Console.ForegroundColor = ConsoleColor.DarkRed;
  23. Console.Write (" ==> ");
  24. Console.ForegroundColor = initial;
  25. Console.WriteLine (message);
  26. }
  27.  
  28.  
  29. public static void Warning (string message)
  30. {
  31. // Facciamo capire che è un errore
  32. ConsoleColor initial = Console.ForegroundColor;
  33. Console.ForegroundColor = ConsoleColor.Cyan;
  34. Console.Write (" ==> ");
  35. Console.ForegroundColor = initial;
  36. Console.WriteLine (message);
  37. }
  38.  
  39.  
  40. public static void Info (string message)
  41. {
  42. // Facciamo capire che è un errore
  43. ConsoleColor initial = Console.ForegroundColor;
  44. Console.ForegroundColor = ConsoleColor.Green;
  45. Console.Write (" ==> ");
  46. Console.ForegroundColor = initial;
  47. Console.WriteLine (message);
  48.  
  49. StatusBarUpdate(message);
  50. }
  51. }
  52. }