Decklink*: std:: prefixes

This commit is contained in:
FeRD (Frank Dana)
2019-08-04 23:14:38 -04:00
parent f88fd7a47a
commit 1334450eec
5 changed files with 10 additions and 14 deletions

View File

@@ -246,7 +246,7 @@ std::shared_ptr<Frame> DecklinkReader::GetFrame(int64_t requested_frame)
// Generate JSON string of this object
string DecklinkReader::Json() {
std::string DecklinkReader::Json() {
// Return formatted string
return JsonValue().toStyledString();
@@ -264,14 +264,14 @@ Json::Value DecklinkReader::JsonValue() {
}
// Load JSON string into this object
void DecklinkReader::SetJson(string value) {
void DecklinkReader::SetJson(std::string value) {
// Parse JSON string into JSON objects
Json::Value root;
Json::CharReaderBuilder rbuilder;
Json::CharReader* reader(rbuilder.newCharReader());
string errors;
std::string errors;
bool success = reader->parse( value.c_str(),
value.c_str() + value.size(), &root, &errors );
delete reader;