1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

Move function declaration (#3207)

This commit is contained in:
Ilkka 2022-06-05 20:08:58 +03:00 committed by GitHub
parent 9cbb4d3384
commit 4d888ee8fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,8 +10,6 @@
#include <fmt/format.h>
std::string_view tr_sys_path_dirname(std::string_view path);
/**
* A memory buffer which uses a builtin array of N bytes, using heap
* memory only if its string gets too big. Its main use case is building
@ -268,6 +266,7 @@ public:
bool popdir() noexcept
{
std::string_view tr_sys_path_dirname(std::string_view path);
auto const parent = tr_sys_path_dirname(sv());
auto const changed = parent != sv();