summaryrefslogtreecommitdiffstats
path: root/win/vncconfig/Connections.h
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2009-10-12 15:54:59 +0000
committerAdam Tkac <atkac@redhat.com>2009-10-12 15:54:59 +0000
commit934f63cba1bf9646e3fd40b9575930e8c3371853 (patch)
tree92da01c0baccbb4182f656e0a541d6663291606b /win/vncconfig/Connections.h
parent8517ea56a741f728ef290f54b77d736251f04b22 (diff)
downloadtigervnc-934f63cba1bf9646e3fd40b9575930e8c3371853.tar.gz
tigervnc-934f63cba1bf9646e3fd40b9575930e8c3371853.zip
Make winvnc4 and Windows vncconfig compilable via MinGW.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3913 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/vncconfig/Connections.h')
-rw-r--r--win/vncconfig/Connections.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/vncconfig/Connections.h b/win/vncconfig/Connections.h
index 7512cc65..209e4fd8 100644
--- a/win/vncconfig/Connections.h
+++ b/win/vncconfig/Connections.h
@@ -62,7 +62,7 @@ namespace rfb {
pattern.replaceBuf(0);
}
bool onOk() {
- TCharArray host = getItemString(IDC_HOST_PATTERN);
+ TCharArray host(getItemString(IDC_HOST_PATTERN));
TCharArray newPat(_tcslen(host.buf)+2);
if (isItemChecked(IDC_ALLOW))
newPat.buf[0] = _T('+');
@@ -248,8 +248,8 @@ namespace rfb {
}
bool isChanged() {
try {
- CharArray new_hosts = getHosts();
- CharArray old_hosts = hosts.getData();
+ CharArray new_hosts(getHosts());
+ CharArray old_hosts(hosts.getData());
return (strcmp(new_hosts.buf, old_hosts.buf) != 0) ||
(localHost != isItemChecked(IDC_LOCALHOST)) ||
(port_number != getItemInt(IDC_PORT)) ||