Skip to content

Commit

Permalink
Do not use std::string_view for the filename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk committed Sep 16, 2023
1 parent 6c488fb commit 4fbc9bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/download_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int main(int argc, char *argv[])
{
try
{
constexpr std::string_view filename = "favicon.ico";
const char *filename = "favicon.ico";

std::ofstream ofs(filename, std::ofstream::binary | std::ofstream::trunc);

Expand Down

0 comments on commit 4fbc9bd

Please sign in to comment.