diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index 9c0f36a..fb22f38 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -887,9 +887,9 @@ zwlr_screencopy_manager_v1* CHyprlock::getScreencopy() { void CHyprlock::attemptRestoreOnDeath() { // dirty hack - uint64_t timeNowMs = std::chrono::duration_cast(std::chrono::system_clock::now() - std::chrono::system_clock::from_time_t({0})).count(); + uint64_t timeNowMs = std::chrono::duration_cast(std::chrono::system_clock::now() - std::chrono::system_clock::from_time_t({0})).count(); - constexpr char* LASTRESTARTPATH = "/tmp/hypr/.hyprlockrestart"; + constexpr const char* LASTRESTARTPATH = "/tmp/hypr/.hyprlockrestart"; if (std::filesystem::exists(LASTRESTARTPATH)) { std::ifstream ifs(LASTRESTARTPATH);