Skip to content

Commit

Permalink
Fix path => string.
Browse files Browse the repository at this point in the history
  • Loading branch information
karnkaul committed Jan 10, 2024
1 parent b692b09 commit 97c93f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/data_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ auto DataStore::make_full_path(std::string_view uri) const -> std::string { retu

auto DataStore::make_uri(std::string_view const full_path) const -> std::string {
if (full_path.empty()) { return {}; }
return fs::path{full_path}.lexically_relative(get_mount_point());
return fs::path{full_path}.lexically_relative(get_mount_point()).generic_string();
}

auto DataStore::to_spir_v(std::string_view const glsl) const -> std::string {
Expand Down
2 changes: 1 addition & 1 deletion tools/src/tools/applet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ auto Applet::save_json(dj::Json const& json, std::string_view uri) const -> bool
}

auto Applet::format_title(std::string_view name, std::string_view uri, bool unsaved) -> std::string {
auto ret = std::format("{}{}", unsaved ? "*" : "", name);
auto ret = fmt::format("{}{}", unsaved ? "*" : "", name);
if (!uri.empty()) { fmt::format_to(std::back_inserter(ret), " - {}", uri); }
return ret;
}
Expand Down
1 change: 1 addition & 0 deletions tools/src/tools/tiler.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <bave/json_io.hpp>
#include <tools/tiler.hpp>
#include <algorithm>
#include <filesystem>

namespace bave::tools {
Expand Down

0 comments on commit 97c93f0

Please sign in to comment.