Jelajahi Sumber

UI: Use inline const for shared vector

Issue detected by PVS Studio.
Richard Stanway 4 tahun lalu
induk
melakukan
f131c0c36b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      UI/auth-youtube.hpp

+ 1 - 1
UI/auth-youtube.hpp

@@ -7,7 +7,7 @@
 
 
 #include "auth-oauth.hpp"
 #include "auth-oauth.hpp"
 
 
-const std::vector<Auth::Def> youtubeServices = {
+inline const std::vector<Auth::Def> youtubeServices = {
 	{"YouTube - RTMP", Auth::Type::OAuth_LinkedAccount, true},
 	{"YouTube - RTMP", Auth::Type::OAuth_LinkedAccount, true},
 	{"YouTube - RTMPS", Auth::Type::OAuth_LinkedAccount, true},
 	{"YouTube - RTMPS", Auth::Type::OAuth_LinkedAccount, true},
 	{"YouTube - HLS", Auth::Type::OAuth_LinkedAccount, true}};
 	{"YouTube - HLS", Auth::Type::OAuth_LinkedAccount, true}};