1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/x11-wm/ede/files/patch-pekwm__Observable.hh
Antoine Brodin a2b47f3289 Fix build with clang
PR:		ports/184859
Submitted by:	KATO Tsuguru
2014-01-05 19:43:58 +00:00

25 lines
599 B
C++

--- ./pekwm/Observable.hh.orig 2012-05-18 12:51:49.000000000 +0000
+++ ./pekwm/Observable.hh 2014-01-05 16:56:43.000000000 +0000
@@ -9,11 +9,7 @@
#ifndef _OBSERVABLE_HH_
#define _OBSERVABLE_HH_
-#ifdef HAVE_SLIST
-#include <slist>
-#else // HAVE_EXT_SLIST
-#include <ext/slist>
-#endif // HAVE_SLIST
+#include <vector>
class Observer;
@@ -36,7 +32,7 @@
void removeObserver(Observer *observer);
private:
- SLIST_NAMESPACE::slist<Observer*> _observers; /**< List of observers. */
+ std::vector<Observer*> _observers; /**< List of observers. */
};
#endif // _OBSERVABLE_HH_