From 9331e95276232b92b6f573f61aae14ccb9aa7e60 Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Mon, 22 Jul 2024 22:47:45 +0200 Subject: [PATCH] xbmc/profiles: cppcheck performance fixes --- xbmc/profiles/Profile.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xbmc/profiles/Profile.cpp b/xbmc/profiles/Profile.cpp index 5665d25198..f0614f2630 100644 --- a/xbmc/profiles/Profile.cpp +++ b/xbmc/profiles/Profile.cpp @@ -11,18 +11,16 @@ #include "XBDateTime.h" #include "utils/XMLUtils.h" -CProfile::CLock::CLock(LockType type, const std::string &password): - code(password) +CProfile::CLock::CLock(LockType type, const std::string& password) + : mode(type), code(password), settings(LOCK_LEVEL::NONE) { programs = false; pictures = false; files = false; video = false; music = false; - settings = LOCK_LEVEL::NONE; addonManager = false; games = false; - mode = type; } void CProfile::CLock::Validate() -- 2.11.4.GIT