mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
optimize memory reservation in getCellValuesFromBlockStack()
This commit is contained in:
parent
bf7a47a884
commit
cf6e634d60
@ -291,6 +291,8 @@ std::vector<double> QgsRasterAnalysisUtils::getCellValuesFromBlockStack( const s
|
||||
{
|
||||
//get all values from inputBlocks
|
||||
std::vector<double> cellValues;
|
||||
cellValues.reserve( inputBlocks.size() );
|
||||
|
||||
for ( auto &block : inputBlocks )
|
||||
{
|
||||
double value = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user