diff --git a/src/libs/3rdparty/botan/botan.cpp b/src/libs/3rdparty/botan/botan.cpp
index 000c3ea823cc032ad08bbcecbb7f566d320b31eb..917c3851722115fefe45cbda014fadb90c8b71e9 100644
--- a/src/libs/3rdparty/botan/botan.cpp
+++ b/src/libs/3rdparty/botan/botan.cpp
@@ -21909,7 +21909,7 @@ std::pair<struct dirent*, std::string> Directory_Walker::get_next_dirent()
       struct dirent* dir = ::readdir(m_cur_dir.first);
 
       if(dir)
-         return std::make_pair<struct dirent*, std::string>(dir, m_cur_dir.second);
+         return std::make_pair(dir, m_cur_dir.second);
 
       ::closedir(m_cur_dir.first);
       m_cur_dir = std::make_pair<DIR*, std::string>(0, "");