aboutsummaryrefslogtreecommitdiffstats
path: root/win/winvnc/AddNewClientDialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'win/winvnc/AddNewClientDialog.h')
-rw-r--r--win/winvnc/AddNewClientDialog.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/win/winvnc/AddNewClientDialog.h b/win/winvnc/AddNewClientDialog.h
index 9bf51355..4bc489d8 100644
--- a/win/winvnc/AddNewClientDialog.h
+++ b/win/winvnc/AddNewClientDialog.h
@@ -23,7 +23,6 @@
#include <winvnc/resource.h>
#include <rfb_win32/Dialog.h>
-//#include <rfb_win32/TCharArray.h>
namespace winvnc {
@@ -41,10 +40,10 @@ namespace winvnc {
// Dialog methods (protected)
virtual void initDialog() {
if (hostName.buf)
- setItemString(IDC_HOST, rfb::TStr(hostName.buf));
+ setItemString(IDC_HOST, hostName.buf);
}
virtual bool onOk() {
- hostName.replaceBuf(rfb::strDup(rfb::CStr(getItemString(IDC_HOST))));
+ hostName.replaceBuf(rfb::strDup(getItemString(IDC_HOST)));
return true;
}