summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/threadpool.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/misc/threadpool.cxx')
-rw-r--r--comphelper/source/misc/threadpool.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/misc/threadpool.cxx b/comphelper/source/misc/threadpool.cxx
index 403612289bae..58613649e8fa 100644
--- a/comphelper/source/misc/threadpool.cxx
+++ b/comphelper/source/misc/threadpool.cxx
@@ -116,7 +116,7 @@ struct ThreadPoolStatic : public rtl::StaticWithInit< std::shared_ptr< ThreadPoo
{
std::shared_ptr< ThreadPool > operator () () {
sal_Int32 nThreads = std::max( std::thread::hardware_concurrency(), 1U );
- return std::shared_ptr< ThreadPool >( new ThreadPool( nThreads ) );
+ return std::make_shared< ThreadPool >( nThreads );
};
};