Coverity fixes

151677
151789  - OK as is
152005
152508
154871  - false positive
156593
163235
This commit is contained in:
WandererFan
2017-06-25 19:22:53 -04:00
committed by Yorik van Havre
parent 033242ead8
commit cbf42ad3b0
5 changed files with 8 additions and 2 deletions

View File

@@ -173,7 +173,8 @@ App::DocumentObjectExecReturn * DrawSVGTemplate::execute(void)
//double t0, t1,t2,t3;
float t0, t1,t2,t3;
if(line.find("<!-- Title block") != std::string::npos) {
sscanf(line.c_str(), "%*s %*s %*s %f %f %f %f", &t0, &t1, &t2, &t3); //eg " <!-- Working space 10 10 410 287 -->"
(void) sscanf(line.c_str(), "%*s %*s %*s %f %f %f %f", &t0, &t1, &t2, &t3); //eg " <!-- Working space 10 10 410 287 -->"
//coverity 151677
blockDimensions = QRectF(t0, t1, t2 - t0, t3 - t1);
}