aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Container.hh
diff options
context:
space:
mode:
authorGlen Whitney <glen@studioinfinity.org>2022-10-25 15:53:19 (GMT)
committerMathias Gumz <mgumz@users.noreply.github.com>2024-11-25 20:23:51 (GMT)
commit823ca2e181df0c056875c4c901a37d86b60b4256 (patch)
tree30f54ee20b3a7b37cfd328f1abd9ff1e8d944bf0 /src/FbTk/Container.hh
parent06993a4ac8261f1ea6876d7593b14cf43103214b (diff)
downloadfluxbox-823ca2e181df0c056875c4c901a37d86b60b4256.zip
fluxbox-823ca2e181df0c056875c4c901a37d86b60b4256.tar.bz2
chore: remove compiler warnings
Most warnings were caused by deprecated std library templates, especially std::mem_fun, std::bind1st, and std::bind2nd. These are replaced by their modern versions, std::mem_fn and std::bind.
Diffstat (limited to 'src/FbTk/Container.hh')
-rw-r--r--src/FbTk/Container.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/Container.hh b/src/FbTk/Container.hh
index 2dc6475..1d3547a 100644
--- a/src/FbTk/Container.hh
+++ b/src/FbTk/Container.hh
@@ -90,7 +90,7 @@ public:
90 unsigned int maxWidthPerClient() const; 90 unsigned int maxWidthPerClient() const;
91 bool updateLock() const { return m_update_lock; } 91 bool updateLock() const { return m_update_lock; }
92 92
93 void for_each(std::mem_fun_t<void, FbWindow> function); 93 void for_each(std::function<void(Item)> function);
94 void setAlpha(int alpha); // set alpha on all windows 94 void setAlpha(int alpha); // set alpha on all windows
95 95
96 ItemList::iterator begin() { return m_item_list.begin(); } 96 ItemList::iterator begin() { return m_item_list.begin(); }