瀏覽代碼

UI: Pass QColor as reference

Michael Fabian 'Xaymar' Dirks 6 年之前
父節點
當前提交
dc150ce0eb
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);