aboutsummaryrefslogtreecommitdiffstats
path: root/unix/tx/TXWindow.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-06-24 14:35:43 +0200
committerPierre Ossman <ossman@cendio.se>2024-06-24 14:35:43 +0200
commit1b6d5594e34bf3c96e225eab794943dc1ce6b1de (patch)
tree3088799b3e595f2e062e258c515d97970b00402b /unix/tx/TXWindow.h
parent0e9a00e87cf12087b253e0be214c7a7a045c94de (diff)
parent02c6a1bf7ec18701a0f1a44bec20fc383b8f3565 (diff)
downloadtigervnc-1b6d5594e34bf3c96e225eab794943dc1ce6b1de.tar.gz
tigervnc-1b6d5594e34bf3c96e225eab794943dc1ce6b1de.zip
Merge branch 'c++11' of github.com:CendioOssman/tigervnc
Diffstat (limited to 'unix/tx/TXWindow.h')
-rw-r--r--unix/tx/TXWindow.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/unix/tx/TXWindow.h b/unix/tx/TXWindow.h
index 223c07a8..9f2a30cb 100644
--- a/unix/tx/TXWindow.h
+++ b/unix/tx/TXWindow.h
@@ -65,7 +65,8 @@ public:
// background (currently grey). It is mapped by default if it has a parent.
// If no parent is specified its parent is the root window and it will remain
// unmapped.
- TXWindow(Display* dpy_, int width=1, int height=1, TXWindow* parent_=0,
+ TXWindow(Display* dpy_, int width=1, int height=1,
+ TXWindow* parent_=nullptr,
int borderWidth=0);
virtual ~TXWindow();
@@ -73,8 +74,9 @@ public:
// window-manager-related properties are set on the window. The given
// TXDeleteWindowCallback is notified when the window is "deleted" (cloesd)
// by the user.
- void toplevel(const char* name, TXDeleteWindowCallback* dwc=0,
- int argc=0, char** argv=0, const char* windowClass=0,
+ void toplevel(const char* name, TXDeleteWindowCallback* dwc=nullptr,
+ int argc=0, char** argv=nullptr,
+ const char* windowClass=nullptr,
bool iconic=false);
// setMaxSize() tells the window manager the maximum size to allow a
@@ -181,7 +183,7 @@ public:
// strEmptyToNull() returns the string it's given but turns an empty string
// into null, which can be useful for passing rfb parameters to Xlib calls.
- static char* strEmptyToNull(char* s) { return s && s[0] ? s : 0; }
+ static char* strEmptyToNull(char* s) { return s && s[0] ? s : nullptr; }
// The following are default values for various things.
static unsigned long black, white;