Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Use std::mem_fn

Tact Yoshida4784a2711482
diff --git a/toonz/sources/toonz/cleanuppopup.cpp b/toonz/sources/toonz/cleanuppopup.cpp
index 88604aaef..8053eb2ea 100644
--- a/toonz/sources/toonz/cleanuppopup.cpp
+++ b/toonz/sources/toonz/cleanuppopup.cpp
@@ -49,15 +49,11 @@
#include <QMainWindow>
#include <QGroupBox>
-// boost includes
-#include <boost/bind.hpp>
-#include <boost/functional.hpp>
-#include <boost/mem_fn.hpp>
-
// STL includes
#include <set>
#include <map>
#include <numeric>
+#include <functional>
//*****************************************************************************
// Local namespace stuff
@@ -743,7 +739,7 @@ bool CleanupPopup::analyzeCleanupList() {
/*--- Cleanup対象フレームが無くなったLevelを対象から外す ---*/
m_cleanupLevels.erase(
std::remove_if(m_cleanupLevels.begin(), m_cleanupLevels.end(),
- boost::mem_fn(&CleanupLevel::empty)),
+ std::mem_fn(&CleanupLevel::empty)),
m_cleanupLevels.end());
return true;