Skip to content
Snippets Groups Projects
Commit 89472844 authored by Nils Speetzen's avatar Nils Speetzen :shrimp:
Browse files

avoid using .ends_with()

parent fadd3bab
No related branches found
No related tags found
1 merge request!134Add configure option cache_window_size
......@@ -300,7 +300,7 @@ void glow::viewer::detail::set_cache_window_size_folder(std::string_view s)
folder = s;
if(folder.empty()) return;
if(!folder.ends_with("/")) folder.append("/");
if(folder.back() != '/') folder.append("/");
if(!std::filesystem::exists(folder))
{
glow::warning() << "Target folder for window size caching does not exist! Defaulting to working directory.";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment