Przeglądaj źródła

UI: Pass QColor as reference

Michael Fabian 'Xaymar' Dirks 6 lat temu
rodzic
commit
dc150ce0eb
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      UI/qt-display.cpp

+ 1 - 1
UI/qt-display.cpp

@@ -6,7 +6,7 @@
 #include <QResizeEvent>
 #include <QShowEvent>
 
-static inline long long color_to_int(QColor color)
+static inline long long color_to_int(const QColor &color)
 {
 	auto shift = [&](unsigned val, int shift) {
 		return ((val & 0xff) << shift);