summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xetable.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/excel/xetable.cxx')
-rw-r--r--sc/source/filter/excel/xetable.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx
index bc6e48b4afef..f539b921d046 100644
--- a/sc/source/filter/excel/xetable.cxx
+++ b/sc/source/filter/excel/xetable.cxx
@@ -2133,7 +2133,7 @@ void XclExpRowBuffer::Finalize( XclExpDefaultRowData& rDefRowData, const ScfUInt
// This is staggeringly slow, and each element operates only
// on its own data.
const size_t nRows = maRowMap.size();
- const size_t nThreads = nRows < 128 ? 1 : std::max(std::thread::hardware_concurrency(), 1U);
+ const size_t nThreads = nRows < 128 ? 1 : comphelper::ThreadPool::getPreferredConcurrency();
#else
const size_t nThreads = 1; // globally disable multi-threading for now.
#endif