From 09d79228a0e50774822ae8dd7b50b1671b36d3e4 Mon Sep 17 00:00:00 2001
From: Syping <schiedelrafael@keppe.org>
Date: Thu, 11 May 2023 21:54:13 +0200
Subject: [PATCH] build fix for older Boost.JSON versions (2/2)

---
 src/SnapmaticPicture.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/SnapmaticPicture.cpp b/src/SnapmaticPicture.cpp
index 516f108..54cd02b 100644
--- a/src/SnapmaticPicture.cpp
+++ b/src/SnapmaticPicture.cpp
@@ -1087,7 +1087,7 @@ bool SnapmaticPicture::setJsonStr(const QString &json, bool updateProperties)
 
 bool SnapmaticPicture::setJsonStr(const std::string &json, bool updateProperties)
 {
-    std::error_code ec;
+    boost::json::error_code ec;
     const boost::json::value t_jsonValue = boost::json::parse(json, ec);
     if (ec)
         return false;