File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ namespace json {
14
14
try {
15
15
if ( keyOrPointer.empty () || keyOrPointer.at ( 0 ) == ' /' ) {
16
16
// allow for json pointer paths - these are either empty or begin with '/'
17
- ret = json[ ga::Json::json_pointer ( keyOrPointer )] .get <T>();
17
+ ret = json. at ( ga::Json::json_pointer ( keyOrPointer )) .get <T>();
18
18
} else {
19
19
// assume key is a normal key for a json object
20
- ret = json[ keyOrPointer] .get <T>();
20
+ ret = json. at ( keyOrPointer) .get <T>();
21
21
}
22
22
} catch ( ... ) {
23
23
// todo: log warning? accept an ostream& for logging?
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ inline void from_json( const ga::Json& j, ga::mat4& m )
80
80
// glm is column major - convert from row major
81
81
for ( int r = 0 ; r < 4 ; ++r ) {
82
82
for ( int c = 0 ; c < 4 ; ++c ) {
83
- _m[c][r] = j[r][c] ;
83
+ _m[c][r] = j. at (r). at (c) ;
84
84
}
85
85
}
86
86
} catch ( std::exception & e ) {
You can’t perform that action at this time.
0 commit comments