summaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/MsgBox.h
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2008-12-09 14:57:53 +0000
committerPeter Åstrand <astrand@cendio.se>2008-12-09 14:57:53 +0000
commitb22dbef3c3c4ec299ca5eb7a3f0ad4c59f326ce3 (patch)
tree0f303143981b75861cfcd3a1d0114dc51da8b287 /win/rfb_win32/MsgBox.h
parentb49cd1baaa6423c8d1c6d72edd4d083baa8624c7 (diff)
downloadtigervnc-b22dbef3c3c4ec299ca5eb7a3f0ad4c59f326ce3.tar.gz
tigervnc-b22dbef3c3c4ec299ca5eb7a3f0ad4c59f326ce3.zip
MinGW tweak: Constructs such as:
CharArray somevariable = "somestring" ...are not allowed. It seems like MSVC does not correctly check accessibility for temporaries. Chapter 12.2 of ISO/IEC 14882:2003(E): > Even when the creation of the temporary object is avoided (12.8), > all the semantic restrictions must be respected as if the temporary > object was created. [Example: even if the copy constructor is not > called, all the semantic restrictions, such as accessibility > (clause 11), shall be satisfied. ] git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3344 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/rfb_win32/MsgBox.h')
-rw-r--r--win/rfb_win32/MsgBox.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/rfb_win32/MsgBox.h b/win/rfb_win32/MsgBox.h
index 59571395..918a909f 100644
--- a/win/rfb_win32/MsgBox.h
+++ b/win/rfb_win32/MsgBox.h
@@ -48,7 +48,7 @@ namespace rfb {
flags |= MB_TOPMOST | MB_SETFOREGROUND;
int len = _tcslen(AppName.buf) + 1;
if (msgType) len += _tcslen(msgType) + 3;
- TCharArray title = new TCHAR[len];
+ TCharArray title(new TCHAR[len]);
_tcscpy(title.buf, AppName.buf);
if (msgType) {
_tcscat(title.buf, _T(" : "));