FreeBSD Bugzilla – Attachment 243544 Details for
Bug 272660
x11-wm/blackbox: switch from std::mem_fun to std::mem_fn
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch for src/blackbox.cc
patch-src_blackbox.cc (text/plain), 1.52 KB, created by
Trond Endrestøl
on 2023-07-22 10:48:01 UTC
(
hide
)
Description:
Updated patch for src/blackbox.cc
Filename:
MIME Type:
Creator:
Trond Endrestøl
Created:
2023-07-22 10:48:01 UTC
Size:
1.52 KB
patch
obsolete
>--- src/blackbox.cc.orig 2005-10-18 11:33:25 UTC >+++ src/blackbox.cc >@@ -27,6 +27,8 @@ > #include "Slit.hh" > #include "Window.hh" > >+#include <cstdlib> >+ > #include <Pen.hh> > #include <PixmapCache.hh> > #include <Util.hh> >@@ -36,6 +38,7 @@ > #include <sys/stat.h> > #include <assert.h> > #include <signal.h> >+#include <stdlib.h> > #include <unistd.h> > > // #define FOCUS_DEBUG >@@ -113,7 +116,7 @@ void Blackbox::shutdown(void) { > XSetInputFocus(XDisplay(), PointerRoot, RevertToPointerRoot, XTime()); > > std::for_each(screen_list, screen_list + screen_list_count, >- std::mem_fun(&BScreen::shutdown)); >+ std::mem_fn(&BScreen::shutdown)); > > XSync(XDisplay(), false); > >@@ -367,7 +370,7 @@ void Blackbox::timeout(bt::Timer *) { > menuTimestamps.clear(); > > std::for_each(screen_list, screen_list + screen_list_count, >- std::mem_fun(&BScreen::reconfigure)); >+ std::mem_fn(&BScreen::reconfigure)); > > bt::Font::clearCache(); > bt::PixmapCache::clearCache(); >@@ -422,7 +425,7 @@ Blackbox::Blackbox(char **m_argv, const char *dpy_name > if (managed == 0) { > fprintf(stderr, "%s: no managable screens found, exiting...\n", > applicationName().c_str()); >- ::exit(3); >+ std::exit(3); > } > > screen_list_count = managed; >@@ -620,5 +623,5 @@ void Blackbox::rereadMenu(void) { > menuTimestamps.clear(); > > std::for_each(screen_list, screen_list + screen_list_count, >- std::mem_fun(&BScreen::rereadMenu)); >+ std::mem_fn(&BScreen::rereadMenu)); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 272660
: 243544 |
243545