From 9a5c0031d756fe7329de0fa268ede1a8fb993772 Mon Sep 17 00:00:00 2001
From: loong ci <loong_c@yeah.net>
Date: Fri, 22 Jul 2022 08:57:06 +0800
Subject: [PATCH] fix function virtual

---
 deepin-devicemanager/tests/src/ThreadPool/ut_readfilepool.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/deepin-devicemanager/tests/src/ThreadPool/ut_readfilepool.cpp b/deepin-devicemanager/tests/src/ThreadPool/ut_readfilepool.cpp
index 6928820..7b1fc61 100644
--- a/deepin-devicemanager/tests/src/ThreadPool/ut_readfilepool.cpp
+++ b/deepin-devicemanager/tests/src/ThreadPool/ut_readfilepool.cpp
@@ -70,6 +70,6 @@ void ut_ThreadPool_start()
 TEST_F(ReadFilePool_UT, ReadFilePool_UT_readAllFile)
 {
     Stub stub;
-    stub.set(ADDR(QThreadPool, start), ut_ThreadPool_start);
+    stub.set((void (QThreadPool::*)(QRunnable *, int))ADDR(QThreadPool, start), ut_ThreadPool_start);
     m_readFilePool->readAllFile();
 }
-- 
2.20.1

