Mark CommonValue as deprecated to generate warnings in old code

This commit is contained in:
Wojtek Figat
2025-01-13 18:25:26 +01:00
parent 754e0c4e29
commit 90ba7f4a92
7 changed files with 21 additions and 3 deletions

View File

@@ -284,6 +284,7 @@ DateTime JsonTools::GetDateTime(const Value& value)
return DateTime(value.GetInt64());
}
PRAGMA_DISABLE_DEPRECATION_WARNINGS
CommonValue JsonTools::GetCommonValue(const Value& value)
{
// [Deprecated on 31.07.2020, expires on 31.07.2022]
@@ -363,3 +364,4 @@ CommonValue JsonTools::GetCommonValue(const Value& value)
}
return result;
}
PRAGMA_ENABLE_DEPRECATION_WARNINGS