Files
MINGW-packages/mingw-w64-opencolorio-git/yaml-api-fix.patch
T

76 lines
3.3 KiB
Diff

diff -Naur opencolorio-orig/src/OpenColorIO/OCIOYaml.cpp opencolorio/src/OpenColorIO/OCIOYaml.cpp
--- opencolorio-orig/src/OpenColorIO/OCIOYaml.cpp 2019-07-30 20:02:52.662711900 +0300
+++ opencolorio/src/OpenColorIO/OCIOYaml.cpp 2019-07-30 20:16:29.063724700 +0300
@@ -155,7 +155,7 @@
catch (const std::exception & e)
{
std::ostringstream os;
- os << "At line " << (node.GetMark().line + 1)
+ os << "At line " << (node.Mark().line + 1)
<< ", '" << node.Tag() << "' parsing boolean failed "
<< "with: " << e.what();
throw Exception(os.str().c_str());
@@ -182,7 +182,7 @@
catch (const std::exception & e)
{
std::ostringstream os;
- os << "At line " << (node.GetMark().line + 1)
+ os << "At line " << (node.Mark().line + 1)
<< ", '" << node.Tag() << "' parsing integer failed "
<< "with: " << e.what();
throw Exception(os.str().c_str());
@@ -210,7 +210,7 @@
catch (const std::exception & e)
{
std::ostringstream os;
- os << "At line " << (node.GetMark().line + 1)
+ os << "At line " << (node.Mark().line + 1)
<< ", '" << node.Tag() << "' parsing float failed "
<< "with: " << e.what();
throw Exception(os.str().c_str());
@@ -238,7 +238,7 @@
catch (const std::exception & e)
{
std::ostringstream os;
- os << "At line " << (node.GetMark().line + 1)
+ os << "At line " << (node.Mark().line + 1)
<< ", '" << node.Tag() << "' parsing double failed "
<< "with: " << e.what();
throw Exception(os.str().c_str());
@@ -265,7 +265,7 @@
catch (const std::exception & e)
{
std::ostringstream os;
- os << "At line " << (node.GetMark().line + 1)
+ os << "At line " << (node.Mark().line + 1)
<< ", '" << node.Tag() << "' parsing string failed "
<< "with: " << e.what();
throw Exception(os.str().c_str());
@@ -371,7 +371,7 @@
load(key, keyName);
std::ostringstream os;
- os << "At line " << (key.GetMark().line + 1)
+ os << "At line " << (key.Mark().line + 1)
<< ", unknown key '" << keyName << "' in '" << node.Tag() << "'.";
LogWarning(os.str());
@@ -392,7 +392,7 @@
const std::string & msg)
{
std::ostringstream os;
- os << "At line " << (node.GetMark().line + 1)
+ os << "At line " << (node.Mark().line + 1)
<< ", '" << node.Tag() << "' parsing failed: "
<< msg;
@@ -407,7 +407,7 @@
load(key, keyName);
std::ostringstream os;
- os << "At line " << (key.GetMark().line + 1)
+ os << "At line " << (key.Mark().line + 1)
<< ", the value parsing of the key '" << keyName
<< "' from '" << nodeName << "' failed: " << msg;