summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/workbookfragment.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/oox/workbookfragment.cxx')
-rw-r--r--sc/source/filter/oox/workbookfragment.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/oox/workbookfragment.cxx b/sc/source/filter/oox/workbookfragment.cxx
index 4bb9522dd21c..1bfbd5cbd2f7 100644
--- a/sc/source/filter/oox/workbookfragment.cxx
+++ b/sc/source/filter/oox/workbookfragment.cxx
@@ -306,7 +306,7 @@ public:
void importSheetFragments( WorkbookFragment& rWorkbookHandler, SheetFragmentVector& rSheets )
{
- sal_Int32 nThreads = std::min( rSheets.size(), (size_t) std::max(std::thread::hardware_concurrency(), 1U) );
+ sal_Int32 nThreads = std::min( rSheets.size(), (size_t) comphelper::ThreadPool::getPreferredConcurrency() );
Reference< XComponentContext > xContext = comphelper::getProcessComponentContext();