diff --git a/Src/CZICmd/executePlaneScan.cpp b/Src/CZICmd/executePlaneScan.cpp index fb95f328..aa227b12 100644 --- a/Src/CZICmd/executePlaneScan.cpp +++ b/Src/CZICmd/executePlaneScan.cpp @@ -34,8 +34,8 @@ class CExecutePlaneScan : public CExecuteBase cache_context.cache = CreateSubBlockCache(); cache_context.prune_options.maxMemoryUsage = max_cache_size; } - - const IntSize tileSize = { get<0>(options.GetTileSizeForPlaneScan()), get<1>(options.GetTileSizeForPlaneScan()) }; + const auto tile_size_for_plane_scan = options.GetTileSizeForPlaneScan(); + const IntSize tileSize = { get<0>(tile_size_for_plane_scan), get<1>(tile_size_for_plane_scan) }; const auto saver = CSaveBitmapFactory::CreateSaveBitmapObj(nullptr); for (int y = 0; y < (roi.h + static_cast(tileSize.h) - 1) / static_cast(tileSize.h); ++y) diff --git a/Src/libCZI/libCZI_Compositor.h b/Src/libCZI/libCZI_Compositor.h index 1001211f..2fa38565 100644 --- a/Src/libCZI/libCZI_Compositor.h +++ b/Src/libCZI/libCZI_Compositor.h @@ -72,8 +72,8 @@ namespace libCZI /// Options for controlling the prune operation. There are two metrics which can be used to control what /// remains in the cache and what is discarded: the maximum memory usage (for all elements in the cache) and /// the maximum number of sub-blocks. If the cache exceeds one of those limits, then elements are evicted from the cache - /// until both conditions are met. Eviction is done in the order starting with elements where their last access is the longest - /// time ago. As "access" we define either the Add-operation or the Get-operation - so, when an element is retrieved from the + /// until both conditions are met. Eviction is done in the order starting with elements which have been least recently accessed. + /// As "access" we define either the Add-operation or the Get-operation - so, when an element is retrieved from the /// cache, it is considered as "accessed". /// If only one condition is desired, then the other condition can be set to the maximum value of the respective type (which is the /// default value).