MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / setMinorVersion

Method setMinorVersion

src/OpenColorIO/Config.cpp:1311–1324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1309}
1310
1311void Config::setMinorVersion(unsigned int version)
1312{
1313 const unsigned int maxMinor = LastSupportedMinorVersion[m_impl->m_majorVersion - 1];
1314 if (version > maxMinor)
1315 {
1316 std::ostringstream os;
1317 os << "The minor version " << version
1318 << " is not supported for major version "
1319 << m_impl->m_majorVersion
1320 << ". Maximum minor version is " << maxMinor << ".";
1321 throw Exception(os.str().c_str());
1322 }
1323 m_impl->m_minorVersion = version;
1324}
1325
1326void Config::setVersion(unsigned int major, unsigned int minor)
1327{

Callers 2

test_copyMethod · 0.80
OCIO_ADD_TESTFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_copyMethod · 0.64
OCIO_ADD_TESTFunction · 0.64