Fix compilation and more C++11 (fixes #5368)

This commit is contained in:
Flössie
2019-07-06 17:37:49 +02:00
parent c39a79802f
commit 6cbcb9fee5
2 changed files with 7 additions and 6 deletions

View File

@@ -235,7 +235,7 @@ void dfInfo::updateBadPixelList( RawImage *df )
df->data[row + 2][col - 2] + df->data[row + 2][col] + df->data[row + 2][col + 2]);
if( df->data[row][col] > m * threshold ) {
badPixelsThread.push_back( badPix(col, row) );
badPixelsThread.emplace_back(col, row);
}
}
@@ -566,7 +566,7 @@ int DFManager::scanBadPixelsFile( Glib::ustring filename )
if( numparms == 1 ) { // only one number in first line means, that this is the offset.
offset = x;
} else if(numparms == 2) {
bp.push_back( badPix(x + offset, y + offset) );
bp.emplace_back(x + offset, y + offset);
}
while( fgets(line, sizeof(line), file ) ) {