From f3e446d0cde1cc7ed22ac7f848f82fab27cd7238 Mon Sep 17 00:00:00 2001 From: PrzemekD Date: Sat, 21 Dec 2024 17:29:48 +0100 Subject: [PATCH] Make download_generated_image example compile again. --- documentation/images/examples/CMakeLists.txt | 2 +- documentation/images/examples/download_generated_image.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/documentation/images/examples/CMakeLists.txt b/documentation/images/examples/CMakeLists.txt index 384f2bd..776e0da 100644 --- a/documentation/images/examples/CMakeLists.txt +++ b/documentation/images/examples/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.13) project(images) # compilation error -#add_basic_example(download_generated_image) +add_basic_example(download_generated_image) add_basic_example(generate_edit) add_basic_example(generate_edit_async) add_basic_example(generate_image) diff --git a/documentation/images/examples/download_generated_image.cpp b/documentation/images/examples/download_generated_image.cpp index 995f7f0..680f29a 100644 --- a/documentation/images/examples/download_generated_image.cpp +++ b/documentation/images/examples/download_generated_image.cpp @@ -10,8 +10,9 @@ int main() { "a siamese cat!" ); Network::Download( - "C:/some/folder/file.png", // to - response["data"][0]["url"].get() // from + "C:/some/folder/file.png", // to + response["data"][0]["url"].get(), // from + netimpl::components::Header() ); } catch (std::exception& e) {