fix: move shared ptrs to hyprutils like hl (#55)

This commit is contained in:
Gilang ramadhan 2025-01-24 20:46:57 +07:00 committed by GitHub
commit e507bc5aea
Failed to generate hash of commit
3 changed files with 120 additions and 53 deletions

View file

@ -57,7 +57,7 @@ void CHighresHandler::update() {
options.logFn = hcLogger;
options.allowDefaultFallback = true;
manager = std::make_unique<Hyprcursor::CHyprcursorManager>(name.empty() ? nullptr : name.c_str(), options);
manager = makeUnique<Hyprcursor::CHyprcursorManager>(name.empty() ? nullptr : name.c_str(), options);
if (!manager->valid()) {
Debug::log(ERR, "Hyprcursor for dynamic cursors failed loading theme \"{}\", falling back to pixelated trash.", name);

View file

@ -148,7 +148,7 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
finishConfig();
// init things
g_pDynamicCursors = std::make_unique<CDynamicCursors>();
g_pDynamicCursors = makeUnique<CDynamicCursors>();
// try hooking
try {