| 189 | } |
| 190 | |
| 191 | std::vector<std::byte> toByteArray( const std::filesystem::path& path ) |
| 192 | { |
| 193 | const auto str = MR::utf8string( path ); |
| 194 | std::vector<std::byte> results; |
| 195 | results.reserve( str.size() + 1 ); |
| 196 | for ( auto ch : str ) |
| 197 | results.emplace_back( (std::byte)ch ); |
| 198 | results.emplace_back( (std::byte)'\0' ); |
| 199 | return results; |
| 200 | } |
| 201 | |
| 202 | void initArgs( DBusMessage* msg, const char* parentWindow, const char* title, const FileChooserOptions& options ) |
| 203 | { |
no test coverage detected