diff --git a/PowerEditor/src/WinControls/ReadDirectoryChanges/ThreadSafeQueue.h b/PowerEditor/src/WinControls/ReadDirectoryChanges/ThreadSafeQueue.h index f805b5c5a..5682fa052 100644 --- a/PowerEditor/src/WinControls/ReadDirectoryChanges/ThreadSafeQueue.h +++ b/PowerEditor/src/WinControls/ReadDirectoryChanges/ThreadSafeQueue.h @@ -31,6 +31,9 @@ template class CThreadSafeQueue : protected std::list { +protected: + using Base = std::list; + public: CThreadSafeQueue() { @@ -51,7 +54,7 @@ public: { { CComCritSecLock lock(m_Crit, true); - push_back(c); + Base::push_back(c); } ::SetEvent(m_hEvent); } @@ -59,13 +62,13 @@ public: bool pop(C& c) { CComCritSecLock lock( m_Crit, true ); - if (empty()) + if (Base::empty()) { return false; } - c = front(); - pop_front(); + c = Base::front(); + Base::pop_front(); return true; }