From 08a3b63fbeda4e6bb4a79a021cc6339725cdcc84 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Tue, 25 Mar 2025 12:58:50 -0500 Subject: [PATCH] refactor --- repertory/librepertory/include/platform/platform.hpp | 3 ++- repertory/librepertory/src/utils/platform.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/repertory/librepertory/include/platform/platform.hpp b/repertory/librepertory/include/platform/platform.hpp index e0015ab3..cafa2eba 100644 --- a/repertory/librepertory/include/platform/platform.hpp +++ b/repertory/librepertory/include/platform/platform.hpp @@ -25,7 +25,8 @@ #include "types/repertory.hpp" namespace repertory { -[[nodiscard]] auto create_lock_id(provider_type prov, std::string unique_id); +[[nodiscard]] auto create_lock_id(provider_type prov, + std::string_view unique_id); } #if defined(_WIN32) diff --git a/repertory/librepertory/src/utils/platform.cpp b/repertory/librepertory/src/utils/platform.cpp index 41b82318..b7867a7d 100644 --- a/repertory/librepertory/src/utils/platform.cpp +++ b/repertory/librepertory/src/utils/platform.cpp @@ -24,7 +24,7 @@ #include "app_config.hpp" namespace repertory { -auto create_lock_id(provider_type prov, std::string unique_id) { +auto create_lock_id(provider_type prov, std::string_view unique_id) { return fmt::format("{}_{}_{}", REPERTORY_DATA_NAME, app_config::get_provider_name(prov), unique_id); }