mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-11 13:30:47 -04:00
refactor(pages): string -> string_view
This commit is contained in:
parent
56dedbd05e
commit
329d342e7e
@ -24,6 +24,7 @@
|
||||
#include <filesystem>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
namespace dwarfs {
|
||||
@ -38,7 +39,7 @@ struct pager_program {
|
||||
};
|
||||
|
||||
std::optional<pager_program> find_pager_program(os_access const& os);
|
||||
void show_in_pager(pager_program const& pager, std::string text);
|
||||
void show_in_pager(pager_program const& pager, std::string_view text);
|
||||
|
||||
} // namespace tool
|
||||
|
||||
|
@ -78,7 +78,7 @@ std::optional<pager_program> find_pager_program(os_access const& os) {
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
void show_in_pager(pager_program const& pager, std::string text) {
|
||||
void show_in_pager(pager_program const& pager, std::string_view text) {
|
||||
boost::asio::io_context ios;
|
||||
// NOLINTBEGIN(clang-analyzer-unix.BlockInCriticalSection)
|
||||
bp::child proc(pager.name.wstring(), bp::args(pager.args),
|
||||
|
Loading…
x
Reference in New Issue
Block a user